Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Running Batch Files in Different OS's
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Running Batch Files in Different OS's
Divers
Thread ID:
00856702
Message ID:
00856702
Vues:
72
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform