Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy Only Files That Have Changed to Duplicate Drive
Message
From
09/08/2007 13:56:19
 
 
To
09/08/2007 09:42:56
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01246997
Message ID:
01247088
Views:
26
>Has anyone already written anything which copies a directory structure but only copies those files that have changed? I have a utility that does that, but I want to do something specific to VFP files. For example, if the file is part of a form and either the .sct or .scx have changed, I want to copy both the .sct and .scx. The same for reports and classes, et al.
>
>I have another workstation with a mapped drive letter that I need to have a copy of a directory and its subdirectories on. I don't want to copy every file in the entire directory though if not necessary.
>
>I could write something, but I think it has already been done...

Tracy,

I think robocopy will do the job. It can keep a mirror copy of a folder + subfolders. Copies new/changed files and deletes files that have disappeared.

I think its included from win 2003 onwards and it was included in my Vista. I use it every day to sync my work to 3 usb drives. In addition, each usb drive as 7 folders (01 02 03 ... 07). On monday I sync my D: drive to V:\01, Tuesday to V:\02, etc. So I can always go back a week

http://support.microsoft.com/kb/160513


Download details for XP: http://www.microsoft.com/downloads/details.aspx?FamilyID=9d467a69-57ff-4ae7-96ee-b18c4790cffd&DisplayLang=en

In addition to the command line (batch file) I use, there's a GUI interface http://www.microsoft.com/technet/technetmag/issues/2006/11/UtilitySpotlight/default.aspx


This is a command line reference I have found http://theether.net/download/Microsoft/Utilities/robocopy.pdf
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform