>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.