Hi Olivier Cruilles,

I have found a work around. As suggested earlier by Caveat using "// ". I
now have: -

*Public Sub Button1_Click()
Dim SDir As String

Sdir = DirChooser1.SelectedPath

SDir = "ls " & Replace(SDir, " ", "\\ ") & " > Temp.txt"
Shell SDir

End
*

The output to the shell is : - 

*ls /home/charlie/This\ is\ a\ \ test\ directory > Temp.txt*

This even allows for more that one space in a directory name.

Thanks all for your help.

Charlie




--
View this message in context: 
http://gambas.8142.n7.nabble.com/Possible-bug-tp41943p41961.html
Sent from the gambas-user mailing list archive at Nabble.com.

------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to