Re: [Gambas-user] Shell command including string containing a quote

2013-01-29 Thread Tobias Boege
On Tue, 29 Jan 2013, John Rose wrote: > Tobias, > > Thanks for that useful reply. > > I have a quick question (it doesn't seem worth asking on the Mailing List): > Using Dialog.OpenFile(), the resulting Dialog.Path shows the full path > to the file (e.g. /home/john/x.txt). Given that the runtime

Re: [Gambas-user] Shell command including string containing a quote

2013-01-29 Thread John Rose
Tobias, Thanks for that useful reply. I have a quick question (it doesn't seem worth asking on the Mailing List): Using Dialog.OpenFile(), the resulting Dialog.Path shows the full path to the file (e.g. /home/john/x.txt). Given that the runtime user might change to a different directory (from t

Re: [Gambas-user] Shell command including string containing a quote

2013-01-24 Thread Rob Kudla
On 01/24/2013 12:59 PM, John Rose wrote: > I have written a GUI to execute a command which involves selecting > filenames (e.g. sCombinedPath below) to be used in a Shell command (as part > of a Process). It works OK generally. However, if any filename includes a > quote, it goes wrong. > sCommand

Re: [Gambas-user] Shell command including string containing a quote

2013-01-24 Thread John Rose
Thanks Tobias. It worked. Regards, John On 24/01/13 21:08, Tobias Boege wrote: > On Thu, 24 Jan 2013, John Rose wrote: >> I have written a GUI to execute a command which involves selecting >> filenames (e.g. sCombinedPath below) to be used in a Shell command >> (as part of a Process). It works OK

Re: [Gambas-user] Shell command including string containing a quote

2013-01-24 Thread Tobias Boege
On Thu, 24 Jan 2013, John Rose wrote: > I have written a GUI to execute a command which involves selecting > filenames (e.g. sCombinedPath below) to be used in a Shell command > (as part of a Process). It works OK generally. However, if any > filename includes a quote, it goes wrong. > > sCommand

Re: [Gambas-user] Shell command including string containing a quote

2013-01-24 Thread M. Cs.
I guess you will need Chr$(39) as ASCII code for ', or if you need double quote just use Chr$(34). 2013/1/24 John Rose > I have written a GUI to execute a command which involves selecting > filenames (e.g. sCombinedPath below) to be used in a Shell command (as part > of a Process). It works OK

[Gambas-user] Shell command including string containing a quote

2013-01-24 Thread John Rose
I have written a GUI to execute a command which involves selecting filenames (e.g. sCombinedPath below) to be used in a Shell command (as part of a Process). It works OK generally. However, if any filename includes a quote, it goes wrong. sCommand = "mplex -f 8 -o " & "'" & sCombinedPath & "'