Frequently Asked Questions

« Previous
How does the new Adobe Creative Cloud Named license model work?
Next »
What is the name standard for network equipment on BMC.

windows ubuntu macos xibo network zenworks android storage


80. How do I copy many files in Windows using Robocopy?

See also: How do I really delete a directory and files in Windows?
See also: How do I start an elevated command prompt (as administrator) in Windows?
Robocopy is a built in command line tool in Windows to copy files. when it cannot read a file because of any reason, like the file is locked or unavailable, it can retry.

Mirror a directory into another

This deletes destination files that are not in the original.

robocopy g:\myfiles h:\myarchive /MIR /R:2 /W:1

Copy a directory into another

This just copy the files.

robocopy g:\myfiles h:\myarchive /E /R:2 /W:1

If you are copying junction points in Windows you may not want to follow them in order to not loop and fill up the destination. By using /MIR instead of /E files that are not in the source will be deleted from de destination.

j: mkdir backup-2018-11-27 robocopy c:\ j:\backup-2018-11-27\ /MIR /XJ /R:1 /W:1



 

This entry robocopy was last modified 2018-11-27

   

This documentation is covered by GNU Free Documentation License. 13 ms