beautypg.com

Avery Dennison 6035 Programmer Manual Rev.A 7/98 User Manual

Page 90

background image

3-32 ROM-DOS 6.22 User Manual

7/9/98

COPY (cont.)

/-Y requests confirmation for the copy of one file over the existing file
of the same name. Using this option overrides the setting made by the
COPYCMD environment variable.

The COPYCMD environment variable is set using the SET command.
This allows you to set confirmation on or off for the COPY command. If
you always want to be prompted for confirmation when a file will copy
over an existing file, set COPYCMD= /-Y. To automatically overwrite
without confirmation during a copy instruction, set COPYCMD= /Y.
Refer to the SET command for proper usage.

Remarks

When no file name is specified for the target, the new copy is given the
same name as the source file name.

When no drive or path is specified for the source, the current drive
and directory is assumed. When no drive or path is specified for the
target, the current drive and directory are assumed.

If a drivename only is specified without a path, the default directory for
that drive is assumed.

Both source and target filespecs may include wildcard characters (*)
and (?) to specify a set of several files.

Examples

COPY LETTER.TXT a:

Copies the file LETTER.TXT (in your current default drive and path) to
the default directory on the disk in drive A.

COPY *.DOC a:

Copies all files in the default directory with an extension of .DOC to the
default directory of drive A.