Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Closing external programs
Message
From
25/09/2002 11:48:52
 
 
To
25/09/2002 11:13:11
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00704269
Message ID:
00704304
Views:
13
>the ! or RUN command enable vfp to run external programs, but how can vfp determine if an external program is running and how can vfp close it? by exernal program i don't mean just excel or word but e.g.
>c:\winprog\winprog.exe (may not be COM/OLE-compliant) thanks in advance :)

Rather than using the native RUN command, you might try using the API_APPRUN class available for download from here on UT; it permits you to either run something synchronously, so that VFP is paused for the duration of the run, or asynchronously, with VFP and the child app running in parallel; the class permits you to check the progress of the launched app using the CheckTerminationCode() method.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform