Graham, in the form you used, Livecode passes the shell argument without the 
quotes. To Livecode,  the quotes are string delimiters, so to speak. Try:

put "start My Program.exe" into theWinApp
put quote before word 2 of theWinApp
put quote after word 2 of theWinApp
get shell(theWinApp)

You *could* try to embed the quotes in a single statement of course, but I find 
that sort of thing "dirty" especially if I am the one who later on has to 
figure out what the h*ll I was thinking. 

Bob


On May 12, 2011, at 3:03 AM, Graham Samuel wrote:

> Following the instructions for "launch" in the LC docs, I tried the 
> substitute method suggested:
> 
> get shell("start MyProgram.exe")
> 
> this didn't work using the name of the program in Windows Explorer, 
> presumably because there was a space in the name.
> 
> I also tried to get a path to the program, which was reported by LC as 
> 
> C:/Program Files/My Tests/My Test.exe
> 
> and this failed too, with Windows reporting that it couldn't find "Program". 
> So shell doesn't like spaces. I thought that one could get rid of that by 
> replacing space with "%20" but that didn't work either.
> 
> Pardon my ignorance, but what should I have done?
> 
> Graham
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to