Robocopy

XCOPY.EXE has a problem with long path names.  To get around this limitation you can use ROBOCOPY.EXE.  The common error message associated with this issue is "Insufficient memory" when the xcopy gets to a path that is too long.

Copy a directory tree:
robocopy \\server1\share1\ \\server2\share2\ /s /e /R:1 /W:1 /MT

Mirror a directory tree:
robocopy \\server1\share1\ \\server2\share2\ /s /e /R:1 /W:1 /MT /mir

Comments