Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mimicking an XCOPY DOS command
Message
De
14/02/2005 10:37:13
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Mimicking an XCOPY DOS command
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows 2000 SP4
Divers
Thread ID:
00986647
Message ID:
00986647
Vues:
65
Hello,

We are currently using a VFP to run a static DOS batch file. We are using this batch file to perform a one-way sync of one set of directories to another. The command we are using is:

XCOPY C:\DEALER\REPORTS\*.* F:\DEALER\REPORTS\*.* /E /Y /D

In the REPORTS directory there are going to be multiple folders for each dealer. Inside all of those folders are the files we want to copy.

The problem with doing this now is there is no way to check to see if it worked correctly, and if there was an error we don't know about it until we see that the file is not the most current file.

Is there a way I could do this in VFP, where I could somehow build a filelist so I could check the files to make sure they transferred properly? Or is there a better way of doing this?

Thanks!

MAC
Very fitting: http://xkcd.com/386/
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform