**Robocopy [SourceDir] [DestDir] [/Options]**
|
/E
|
Copies all subdirectories (including empty ones).
|
|
/S
|
Copies subdirectories (excluding empty ones).
|
|
/XF file [file]
|
Excludes files with the specified names, paths, or wildcard characters.
|
|
/XD dir [dir]
|
Excludes directories with the specified names, paths, or wildcard characters.
|
|
/LOG:file
|
Redirects output to the specified file, overwriting the file if it already exists.
|
|
/LOG+:file
|
Redirects output to the specified file, appending it to the file if it already exists.
|
|
/NP
|
Turns off copy progress indicator (% copied).
|
|
/TEE
|
Displays output in the console window, in addition to directing it to the log file specified by
/LOG or /LOG+. |
|
/R:n
|
Specifies the number of retries on failed copies. (The default is 1 million.)
|
|
/W:n
|
Specifies the wait time between retries. (The default is 30 seconds.)
|
|
/PURGE
|
Deletes destination files and directories that no longer exist in the source.
|
|
/MIR
|
Mirrors a directory tree (equivalent to running both
/E and /PURGE). |
|
/CREATE
|
Creates a directory tree structure containing zero-length files only (that is, no file data is copied).
|
|
/SEC
|
Copies NTFS security information. (Source and destination volumes must both be NTFS). Equivalent to
/COPY:DATS. |
|
/NOCOPY
|
Copies Nothing. Can be useful with
/PURGE. |
|
/MOV
|
Moves files (that is, deletes source files after copying).
|
|
/MOVE
|
Moves files and directories (that is, deletes source files and directories after copying).
|
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.