Hi Sergey
That's what I needed to know - thanks!
I will be running dothis.exe often. Is it good practice to:
1. Destroy oRun after each use, and start again. Or...
2. Use the already created object and only call oRun.Launchapp() as often as needed.
Thanks
Cyril
>Hi Cyril,
>
>You have to provide full path to the EXE you want to run.
>lcCommandLine = "C:\WhateverFolder\dothis.exe"
>oRun = NEWOBJECT("api_apprun", "Process.vcx", "", lcCommandLine)
>* or
>oRun = NEWOBJECT("api_apprun", "Process.vcx")
>oRun.icCommandline = lcCommandLine
>
>* Run and wait
>oRun.Launchappandwait()
>* Run and continue
>oRun.Launchapp()
>
>