beautypg.com

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

Page 54

background image

4-12 ROM-DOS Internal Commands

C O P Y

Internal Command

The COPY command copies a file or set of files to a specified destination:
another disk, another subdirectory on the current disk, or on a completely
different drive. COPY may also be used to alter the

filename within the

current directory. In addition, this command can be used to direct
communication between files and devices (for example, file contents to a
printer or keyboard input to a file).

Syntax

This command has several possible formats. The essential structure of
each command is

COPY source target option

The

source is the copy from filename or device, and the target is the copy

to

filename or device. Following are various configurations of the COPY

command format.

COPY [drive:][path]filename[/option] [drive:][path]filename[/option]

Where the first

filename indicates the source file(s) to be copied, and the

second

filename indicates the target area on which to copy.

COPY [drive:][path]filename[/option] + [drive:][path]filename[/option]

[drive:][path]filename[/option]

As shown, several source

filenames may be listed to be copied into the

target

filename that is listed last. The source files are concatenated into

the target file.

COPY [drive:][path]filename[/option] device

The target

device is a console or printer (PRN).