Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Ed Rauh's API_APPRUN class
Message
From
03/11/2006 00:57:46
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01166502
Message ID:
01166831
Views:
16
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()
>
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform