Site hosted by Angelfire.com: Build your free website today!

MS-DOS External Commands

The XCOPY Command

Description:

Copies files (except hidden and system files) and directory trees.

Command Syntax:

XCOPY source [destination] [/A | /M] [/D:date] [/P] [/S [/E]] [/V] [/W]

Explanation of Syntax:

source specifies the file(s) to copy.
[destination] specifies the location and/or name of new files.
[/A] copies files with the archive attribute set, doesn't change the attribute.
[/M] copies files with the archive attribute set, turns off the archive attribute.
[/D:date] copies files changed on or after the specified date.
[/P] prompts you before creating each destination file.
[/S] copies directories and subdirectories except empty ones.
[/E] copies any subdirectories, even if empty.
[/V] verifies each new file.
[/W] prompts you to press a key before copying.

Command Use:

This command can be used at the command prompt and in batch files.