Obtain network shares

Is it possible to obtain a list of network shares? Like the terminal command ‘ls /volumes’?

Try it with volume:

Dim i,n as Integer n= VolumeCount-1 For i=0 to n ListBox1.AddRow Volume(i).Name Next

or also use the Shell class methods to execute any terminal commands you want.
http://developer.xojo.com/shell

[quote=338384:@Jean-Yves Pochez]or also use the Shell class methods to execute any terminal commands you want.
http://developer.xojo.com/shell[/quote]
Yep, but then I have to parse the results :frowning:

This works by the way. Thank you.

If you use

ls -1 /Volumes

They’ll all be on separate rows.
NOTE: that option is the number one, not a lowercase L.

Ah! Thanks, didn’t know that.

Who says that a mount is always below the “/Volumes” path?
So “ls -l Volumes” may not always accurate.

You should use the

df

command and look at “Mounted on”.