Executable not behaving correctly when launched using shell on Windows
Trevor DeVore
lists at mangomultimedia.com
Mon Sep 29 11:10:00 EDT 2003
On Monday, September 29, 2003, at 12:09 PM, Scott Rossi wrote:
>>
>> The code I use to open the app from the installer is:
>> put shortFilePath (pFilePath) into pFilePath
>> set hideConsoleWindows to true
>> put shell ("start" && pFilePath) into tError
>>
>> Has anyone encountered something similar and know of a solution?
>
> You might be missing a title parameter in your shell string. Try:
>
> put empty into tTitle
> put shell ("start" && tTitle && quote & pFilePath & quote) into
> tError
That didn't solve it but it made me look at the help for the start
command which I hadn't thought to do. :)
The way to get it to work is to pass the working directory with the /D
paramter.
shell /D PathToWorkingDir programName.exe
Thanks,
--
Trevor DeVore
Blue Mango Multimedia
trevor at mangomultimedia.com
More information about the use-livecode
mailing list