I think you'd need to

DIM interfaceoutput AS String
SHELL "ifconfig blah blah" to interfaceoutput

Then you'll need to split it - is it space or return separated?

E.g. (return separated)

allinterfaces = Split(interfaceoutput, "\n")

"allinterfaces" is an array that now contains all the interfaces. To add
them to the combobox, its as simple as:

For each interface in allinterfaces
Comobox1.Add(interface)
Next

** The only problem being is that command you have will probably need some
backslashes in for it to be passed to shell properly.

HTH
-- 
joshua higgins
>>>>>>------
------------------------------------------------------------------------------
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to