XCOPY CMD (Extended Copy)
Copy files and directory trees, preserving subfolders and attributes. Syntax: xcopy [source] [destination] [/e] [/i] [/h]
Step-by-step
- Open Command Prompt (press Win+R, type cmd, and press Enter)
- Syntax: xcopy [source] [destination] [/e] [/i] [/h]
- Brief: Copy files and directory trees, preserving subfolders and attributes.
- Example: xcopy C:\Docs D:\Backup\Docs /e /h /i
- Tip: Prefer robocopy for large or repeated copies.
Reference: learn.microsoft.com