We’ve been using robocopy for years to do file copying & replication. It’s better than XCOPY & has a ton of options. We’ve been using the same Windows NT/2000 version, so it was little embarrassing to discover that a new, improved version came out with the Windows 2003 Resource Kit. Heh. Here are some of the features of the new robocopy…might be worth taking a look. The “jobs” & “monitor source” features might especially be helpful if there’s a file share you need to replicate, but don’t want to write a scheduled task.
Lastly, the latest version of robocopy will also run on NT/2000. 🙂
Robocopy vXP010
/B : copy files in Backup mode.
/ZB : use restartable mode; if access denied use Backup mode.
/COPY:copyflag[s] : what to COPY (default is /COPY:DAT).
(copyflags : D=Data, A=Attributes, T=Timestamps).
(S=Security=NTFS ACLs, O=Owner info, U=aUditing info).
/COPYALL : COPY ALL file info (equivalent to /COPY:DATSOU).
/NOCOPY : COPY NO file info (useful with /PURGE).
/FFT : assume FAT File Times (2-second granularity).
/256 : turn off very long path (> 256 characters) support.
/MON:n : MONitor source; run again when more than n changes seen.
/MOT:m : MOnitor source; run again in m minutes Time, if changed.
/RH:hhmm-hhmm : Run Hours - times when new copies may be started.
/PF : check run hours on a Per File (not per pass) basis.
/IPG:n : Inter-Packet Gap (ms), to free bandwidth on slow lines.
File Selection Options
/IT : Include Tweaked files.
/XJ : eXclude Junction points. (normally included by default).
/MAXLAD:n : MAXimum Last Access Date - exclude files unused since n.
/MINLAD:n : MINimum Last Access Date - exclude files used since n.
(If n < 1900 then n = n days, else n = YYYYMMDD date).
Logging Options
/TS : include source file Time Stamps in the output.
/FP : include Full Pathname of files in the output.
/NS : No Size - don't log file sizes.
/NC : No Class - don't log file classes.
/NFL : No File List - don't log file names.
/NDL : No Directory List - don't log directory names.
/TEE : output to console window, as well as the log file.
/NJH : No Job Header.
/NJS : No Job Summary.
Job Options
/JOB:jobname : take parameters from the named JOB file.
/SAVE:jobname : SAVE parameters to the named job file
/QUIT : QUIT after processing command line (to view parameters).
/NOSD : NO Source Directory is specified.
/NODD : NO Destination Directory is specified.
/IF : Include the following Files.
You can download the resource kit for free from Microsoft. You can also buy it from Amazon if for some reason you…had too much money?