Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mimicking an XCOPY DOS command
Message
From
14/02/2005 10:37:13
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Mimicking an XCOPY DOS command
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows 2000 SP4
Miscellaneous
Thread ID:
00986647
Message ID:
00986647
Views:
64
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/
Next
Reply
Map
View

Click here to load this message in the networking platform