Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Run command and DOS window
Message
De
19/02/1999 12:21:53
 
 
À
19/02/1999 12:16:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00189351
Message ID:
00189352
Vues:
12
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform