What does Windows 'shell' expect?
Mark Schonewille
m.schonewille at economy-x-talk.com
Thu May 12 06:16:42 EDT 2011
Graham,
Try this:
set the hideConsoleWindows to true
put "start" && quote & quote && quote & "myProgram.exe" & quote into myShell
get shell(myShell)
--
Best regards,
Mark Schonewille
Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553
New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce
On 12 mei 2011, at 12:03, 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
More information about the use-livecode
mailing list