User`s guide

COPY
The /DEVICE and /POSITION options are mutually exclusive.
/DOS
Transfers files between RSTS/E or DOS–11 format and RT–11 format. /DOS
requires the FILEX utility. The option must appear in the command line after
the file to which it applies. Valid DOS input devices are DECtape and RK05; the
only valid DOS output device is DECtape. The only other options allowed with
/DOS are /ASCII, /BINARY, /IMAGE, /OWNER:[nnn,nnn], and /WAIT (using two
device drives).
The following command transfers a BASIC source file from a DOS–11 disk to an
RT–11 disk.
.COPY RK:PROG.BAS/DOS/OWNER:[200,200] SY:*.*
The next command copies a memory image file from an RT–11 disk to a RSTS/E
format DECtape.
.COPY DUMP.SAV DT:*.*/DOS
/END:value
Used with /START:value and /DEVICE to specify the last block of the volume
you are copying. /END:value requires the DUP utility.
The /END:value notation must follow the input file specification. The value
argument represents a decimal block number. The following example copies
blocks 0 to 500 from DU0 to DU1, starting at block 501, in a file named
ADAM.MAC:
.COPY/DEVICE/FILES DU0:/START:0/END:500 DU1:ADAM.MAC/START:501
/EXCLUDE
Copies all the files on a device except the ones you specify. The following
command copies all files from DU0 to DU1 except OBJ and SAV files:
.COPY/EXCLUDE DU0:(*.OBJ,*.SAV) DU1:*.*
Note that if you are copying system (SYS) files, using the /EXCLUDE option, you
must also use the /SYSTEM option.
/FILES
Used with /DEVICE to copy a volume to a file on another volume or vice versa.
/FILES requires the DUP utility.
If you use a magtape in the operation, you must specify a file name and the
/FILES option with the magtape. Do not include wildcards in either the input or
output specification when you use the /FILES option.
This operation is useful if you wish to make several copies of a volume that is
on a slow device. You can copy the volume as a file onto a volume that is on a
faster device, and then proceed to make copies. Note that when you copy a file to
a volume, the bootstrap and directory of the output volume are replaced by the
equivalent blocks of the input file.
48 RT–11 Command Descriptions