From LedHed's Wiki
Revision as of 03:49, 26 July 2012 by Ledhed (Talk | contribs)

Jump to: navigation, search

Examples

robocopy \\SERVER\D$\data D:\data /S /E /COPYALL /R:0 /W:0 /XD "\\SERVER\D$\data\Junk Folder" \\SERVER\D$\data\tmp

Copy from \\SERVER\D$\data to local D:\data

/S = Copy Subdirectories /E =Include Empty Subdirectories /COPYALL = Copy all file attributes /R:0 = Retry zero times on copy failures /W:0 = Wait 0 seconds between retries /XD = Exclude Directories (Space separated list, make sure to properly quote paths that have spaces in them)


Be careful not to create a Junction Loop


References

http://technet.microsoft.com/en-us/library/cc733145%28v=ws.10%29.aspx