of usage, which is not case-sensitive. If more than one option is specified, they must be separated by spaces. Copy directory contents of the source to the destination (including file data, attributes and timestamps), recursively with empty directories (/E): Robocopy "C:\Directory A" "C:\Directory B" /E If directory names have non-standard characters, such as spaces, they must be enclosed in double quotes, as is usual in the command line. Copy directory recursively (/E), copy all file information (/COPYALL, equivalent to /COPY:DATSOU, D=Data, A=Attributes, T=Timestamps, S=Security=NTFS ACLs, O=Owner info, U=Auditing info), do not retry locked files (/R:0) (the number of retries on failed copies default value is 1 million), preserve original directories' Timestamps (/DCOPY:T - requires version XP026 or later): Robocopy C:\A C:\B /COPYALL /E /R:0 /DCOPY:T Mirror A to B, destroying any files in B that are not present in A (/MIR), copy files in resume mode (/Z) in case network connection is lost: Robocopy C:\A \\backupserver\B /MIR /Z For the full reference, see the Microsoft TechNet Robocopy page. Syntactic focus on copying folders Robocopy syntax is markedly different from its predecessors (copy and xcopy), in that it accepts only folder names, without trailing backslash, as its source and destination arguments. File names and wildcard characters (such as * and ?) are not valid as source or destination arguments; files may be selected or excluded using the optional "file" filtering argument (which supports wildcards) along with various other options. For example, to copy two files from folder c:\bar to c:\baz, the following syntax is used: robocopy c:\bar c:\baz file1.txt file2.db And to copy all PDF files from c:\bar to c:\baz: robocopy c:\bar c:\baz *.pdf The files named are copied only from the folder selected for copying; fully qualified path names are not supported. CAUTION: A long-standing issue with Robocopy means that if you back up from the root folder of a drive [ e.g., ], the destination files will be given attributes including SH. This means that they will be invisible to normal access (including DIR in cmd.exe). To fix this, add to the robocopy command line - or do an ATTRIB command to remove them afterwards. Output Robocopy outputs to the screen, or optionally to a log file, the names of all the directories it encounters, in alphabetical order. Each name is preceded by the number of files in the directory that fulfill the criteria for being copied. If the