Avery Dennison 6037 Rev. AA 3/04 Programmer Manual User Manual

Page 190

Advertising
background image

5-70 Utility Descriptions

X C O P Y

The XCOPY command copies multiple files and, optionally, subdirectories
from one disk to another.

Syntax

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

Y]

Remarks

Use the XCOPY command to copy multiple files and subdirectories, if
they exist.

The

source and destination parameters are complete drive-path and file-

specification descriptions. If you do not specify a path, XCOPY assumes
the default path. If either

filename is not specified, then *.* is assumed.

The ATTRIB command may be used to modify the archive bit for the
various XCOPY options that check the archive status of files. Refer to
the ATTRIB command

on page 5-3

description for instructions.

Options

The /A option copies only source files that have the archive bit set in
them. The archive is not reset.

The /D:

mm-dd-yy option copies only those files with a date later than

that specified.

The /E option creates subdirectories on the target even if they are empty.

The /M option copies only those source files that have the archive bit set.
Once the source file is copied, the archive bit is reset.

The /P option prompts before each file is copied. The prompt appears as
follows; enter Y to copy the file:

C:\COMMAND.COM (Y/N)?

Advertising