Home XP Commands
XP Syntax

ROBOCOPY.exe (Resource Kit )

 

 

Update: You can now find all the ROBOCOPY commands on one page

 

 

Below are the changes added to Robocopy in version XP010:

                /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.

"And bring me a hard copy of the Internet so I can do some serious surfing" - Dilbert, June 1999

Related Commands:

ROBOCOPY

Equivalent Linux BASH commands:

rsync - Synchronize file trees
remsync - Synchronize remote files
cp - Copy one or more files to another location



Back to the Top

Simon Sheppard
SS64.com