Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
From what I've found online, robocopy seems to be xcopy with more features; are there any scenarios where someone would want to use xcopy over robocopy?
I dont know anything about robocopy but xcopy was included as part of the OS going back an extremely long time - so there are probably a number if scripts that expect it.
no, he means the opposite. xcopy has been in use for at least 35 years, included in every MS OS ever released (goes back to DOS 3.2 in 1986), whereas robocopy has only been included in the OS by default since 2006 or so (vista/server 2k8). if I was in a dos environment, or in windows 9x/nt/me/2k/xp I'd use xcopy.
robocopy is more versatile, especially with ACLs (allows exactly mirroring a directory's/file's ACLs upon copying via /sec, even if the user doesn't have access privs to the files), exclusions, and monitoring (it can monitor a file/directory for changes and copy/move files/directories based upon an arbitrary change), as well as saving command parameters as a RoboCopy job [.rcj] for calling upon next time. Simply put, it's better than xcopy in almost every way.
I've always thought that robocopy was a response to rsync more than anything else. windows admins needed a tool with advanced features to make up for missing features in the command shell that were common in contemporary linux shells, and was reliable over the network. xcopy can only work over the network if drives have been previously mapped.
robocopy
is more versatile, especially with ACLs (allows exactly mirroring a directory's/file's ACLs upon copying via/sec
, even if the user doesn't have access privs to the files), exclusions, and monitoring (it can monitor a file/directory for changes and copy/move files/directories based upon an arbitrary change), as well as saving command parameters as aRoboCopy
job [.rcj
] for calling upon next time. Simply put, it's better thanxcopy
in almost every way.robocopy
was a response torsync
more than anything else. windows admins needed a tool with advanced features to make up for missing features in the command shell that were common in contemporary linux shells, and was reliable over the network. xcopy can only work over the network if drives have been previously mapped.