Robocopy, for "Robust File Copy", is a command-line directory and/or file replication command for Microsoft Windows. Robocopy functionally replaces Xcopy, with more options. Created by Kevin Allen and first released as part of the Windows NT 4.0 Resource Kit, it has been a standard feature of Windows since Windows Vista and Windows Server 2008. The command is . Features Robocopy is noted for capabilities above and beyond the built-in Windows copy and xcopy commands, including the following, some requiring appropriate command-line options: Ability to tolerate network interruptions and resume copy (incomplete files are marked with a date stamp of 1970-01-01 and contain a recovery record so Robocopy knows where to continue from). Ability to skip NTFS junction points which can cause copying failures because of infinite loops (/XJ) Ability to copy file data and attributes correctly, and to preserve original timestamps, as well as NTFS ACLs, owner information, and audit information using the /COPYALL or /COPY: command line switches. Beginning with the XP026 version, the ability to copy folder (or directory) date and timestamps (/DCOPY:T), even with the ability to update folder timestamps (copied from existing folders) on folders already created from previous versions (that did not copy the folder date and timestamps). Ability to assert the Windows NT "backup right" (/B) so an administrator may copy an entire directory, including files denied readability to the administrator. Persistence by default, with a programmable number of automatic retries if a file cannot be copied. A "mirror" mode, which keeps trees synchronised by also deleting files in the destination that are not present in the source. Ability to skip files already in the destination folder with identical size and timestamp. A continuously updated command-line progress indicator. Ability to copy paths exceeding 259 characters — up to a theoretical limit of about 32,000 characters — without errors. Multithreaded copying introduced with Windows 7 and Windows Server 2008 R2. Return code on program termination for batch file usage. Compression Since Windows Server 2019 and Windows 10, a compression option is available in robocopy when copying across a network. With this switch, if the destination computer supports SMB compression and the files being copied are very compressible, there may be significant improvements to performance. The SMB compression adds inline whitespace compression to file transfers. Compression is also available with the xcopy command and Hyper-V Live Migration with SMB. Examples of use Here are some examples