Robocopy

Table of Contents

Robocopy in Windows

Do not use this approach unless this is the last option. Try to install Cygwin, use git bash, or some other approach before using this.

https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy

How to copy everything from one folder to another folder?

Do not use gitbash. Use command prompt.

robocopy "C:\Users\me\Sync\Music" "P:\My Music\Music" /e /z

/e for recursive

/z for restarts if something fails

Be very careful. Do not use /MIR. If there are files or folders in the destination folder before using this command, they will all be erased. Make sure this command is used to copy files into a new folder only.

ROBOCOPY sourceFolder   destinationFolder /MIR /R:0 /W:0

ROBOCOPY C:\Users\n123456\Desktop   C:\Users\n123456\Downloads\NewFolder /MIR /R:0 /W:0

Links to this note