CMD Master
Back to Blog
Arnošt Havelka

The Xcopy Command

Copy entire directory trees.

Start Interactive Lesson
The Xcopy Command

When basic copy isn't enough, xcopy (Extended Copy) steps in. It's designed to copy directories, subdirectories, and even file attributes. It's the workhorse of simple backups before you graduate to robocopy.

Try the command

Try duplicating a folder structure!

Build the command
xcopy
Terminal
C:\Users\Student>xcopy Source Dest /s
0 File(s) copied

Real-World Examples

Backup a folder tree:

Terminal
C:\Users\Student>xcopy Source Backup /s /e /i /y

Knowledge Check

1 / 2

What is the main difference between copy and xcopy?

References

These documentation links provide authoritative details for the commands used in this article.

Up Next

WMIC Mastery

Query and manage Windows systems with WMIC.