06/1/05

Robocopy Syntax, Command Line Switches and Examples

Robocopy (Robust File Copy) is a command-line file copying tool. Although Robocopy is available for free with the download Windows Resource Kit since Windows NT 4.0, it has never been an official feature of the operating system until the arrival of Vista. Unlike other built-in file copying commands such as Copy and XCopy, Robocopy is designed for reliable copy or mirroring of entire folders of any size, and in the copying process, ensure that all NTFS ACLS, attributes, owner information, alternate data streams, auditing information, timestamps and properties are copied except security information unless explicitly requested with /COPYALL switch. And best of all, Robocopy works over network connections that are subject to disruption or outages with resume copying feature, and has progress indicator on the command line that is useful when copying large files. I’ve been using this tool since 1998, from a windows resource kit, as file copying tool. I was (at the time) using it to push files into a production environment. My production environment happened to be many servers, so writing one script to deploy to all servers made my life a lot easier, and we didn’t have to buy a third party product which was very important. Continue reading