Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Run command and DOS window
Message
From
19/02/1999 12:21:53
 
 
To
19/02/1999 12:16:23
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00189351
Message ID:
00189352
Views:
11
>How do you by detecting when a process issue thru the RUN command
>has finished so you can start with the next process
>Kind like
>
>do something
>run doscommand
>...wait until it finishes
>browse udated table
>

I have a class, available for download from UT, that allows you to run DOS and WinApps from VFP and track them, either waiting on their termination, or allowing you to poll their termination status code. It's available from the File Section, and is called API_APPRUN. An example of how it might work from your example above:

SET CLASSLIB TO PROCESS
oAppTORun = CREATEOBJ('API_APPRUN',"doscommand",,'MIN') && run minimized
oAppToRun.LaunchAppAndWait()
oAppToRun= NULL
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
Next
Reply
Map
View

Click here to load this message in the networking platform