Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running Batch Files in Different OS's
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Running Batch Files in Different OS's
Miscellaneous
Thread ID:
00856702
Message ID:
00856702
Views:
73
The folowing BATCH file works OK in WIN98 but does not work in WINXP.

************
: backup.bat
: dele files on floppy
echo Y|del a:\*.*

: zip data and sys files
pkzip.exe -& a:\tp.zip *.dbf *.fpt *.cdx *.sys

**************
Batch file, pkzip.exe and data files all reside in same directory.

The first command (delete the files) runs OK.

The second command fails after PKZIP (fails to run the parameters) and shows the PKZIP help screen.

I found that I have to put in a delay of 30 seconds (permit pkzip to build the ZIP file on the floppy) to prevent VFP from executing the next commands after I execute the 'RUN /N backup.bat'. This enabled the batch file to RUN OK in WIN95 and 98 but it fails in WINXP. WIthout the delay, my command to reopen the tables is executed before the ZIP process completes and some tables/indexes/memo files are not zipped.

Any ideas?




Re: Releasing a FORM & closing MSDOS WINDOW Thread #856152 Message #856527
Next
Reply
Map
View

Click here to load this message in the networking platform