
Definition
Copies files and directory trees.
Options
For more details and information, execute below command to find the help dialog
C:\>xcopy /?
XCOPY source [destination]
Example
1. Copy all files in desktop to folder Test.
C:\> C:\>XCOPY "C:\Documents\Desktop\*" "C:\Documents\Desktop\Test" C:\Documents\Desktop\Configure Outgoing Email in SAP.txt C:\Documents\Desktop\hjsplit.exe C:\Documents\Desktop\HTTrack Website Copier.lnk C:\Documents\Desktop\MaxDB-Admin-All.pdf C:\Documents\Desktop\Note.txt C:\Documents\Desktop\remove server0 archive.txt C:\Documents\Desktop\Security Q.txt C:\Documents\Desktop\SSL VPN Installation Guide.pdf C:\Documents\Desktop\U1010.exe 09 File(s) copied C:\>
2. Copies directories and subdirectories, including empty ones.
C:\>XCOPY "C:\Documents\Desktop\*" "C:\Documents\Desktop\Test" /E
Error
If you are keep getting error, “insufficient memory” while transferring the files/folders, try to use Robocopy.

