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

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


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 of creating a Junction Loop