Pages

Friday, February 15, 2013

Robocopy Example


Example of a common robocopy command


robocopy.exe C:\Users\username\Documents G:\backup /e /r:0 /w:0 /v /TEE


/E : Copy Subfolders, including Empty Subfolders.

/R:n : Number of Retries on failed copies - default is 1 million.
           
/W:n : Wait time between retries - default is 30 seconds.

/V : Produce Verbose output log, showing skipped files.

/TEE: Splits the output to the screen and the log file

http://ss64.com/nt/robocopy.html

Robocopy is built into Win 7 & Vista but can be downloaded for XP: Windows Server 2003 Resource Kit Tools

Update:  Adding /TEE will allow the log file to be created and produce the Verbose output.  Without the /TEE, the log file be created but you will not see the Verbose output in the black window.

No comments:

Post a Comment