XCOPY is the DOS command designed to copy entire directory structures, including all subdirectories and files. The basic COPY command (. copy) only copies files in the current directory, while XCOPY with /S switch recursively copies the entire directory tree.