Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Running a batch file
Message
De
19/03/2001 23:10:02
 
 
À
19/03/2001 13:22:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00486542
Message ID:
00486744
Vues:
10
>I am running a batch file from within a VFP6 app that zips up files and sends them to a backup directory. The app doesn't wait for the zipping to occur it continues processing and nothing gets zipped or backed up. Any help would be appreciated.
>
>! BACKUP.BAT
>
>What I want to happen is for the app to wait until all of the files named in the backup.bat file to be zipped before executing the next line of code.

If the .BAT file is returning control immediately to VFP, you can try using my API_APPRUN class; it will allow you to run and either wait for it to complete or proceed asynchronously, allowing you to check to see if it has completed. You can download this from the Files section.

If it's a matter of your batch file launching a WinApp and not pausing, you can use the START verb, and add the /WAIT command line parameter to force the batch file to wait on the WinApp to complete before continuing to the next statement in the .BAT file.
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
Répondre
Fil
Voir

Click here to load this message in the networking platform