Name

xcopy

Synopsis

xcopy files destination [options]

Copy directory trees.

Options

/EXCLUDE: file

Exclude all files matching any of the patterns listed in the specified file (one per line) from the copy operation.

/R

Overwrite read-only files.

/U

Update mode. Copy only files that already exist in the destination directory tree.

/D:m-d-y

Copy only files modified on or after the specified date.

/A | /M

Select files with the archive attribute set, then leave it set or unset, respectively.

/H

Include hidden and system files.

/S

Recurse nonempty subdirectories.

/T

Reproduce the directory tree structure but don’t copy any files (excludes empty subdirectories).

/E

Include empty directories (implies /S, unless used with /T).

/V

Verify the copied data.

/I

Force the destination to be interpreted as a directory.

/Q | /F

Produce terse or verbose output, respectively.

/L

List files to be copied by the command, but don’t actually copy any files.

/P

Require confirmation for each destination file.

/K

Reproduce the read-only status of copied files.

/N

Copy using 8.3 filenames.

/C

Continue copying even if an error occurs.

/Z

Copy network files in a restartable operation.

/Y

Suppress overwrite confirmation prompts.

/W

Prompt before beginning copy operation.

Get Windows 2000 Commands Pocket Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.