Chapter
8:
Peripheral Devices 265
Copying
Files
You can make a copy
of
any file
on
your diskettes by using the CO PY
command. The same command with slightly different syntax will concaten-
ate diskette files as well.
To
make a copy
of
a program
on
the same diskette, use the following
command sequence:
OPEN
15,8,13
PRINTi15,
"COpy:
NEW
FILENAME
=
OLD
FILENAME"
You may use the abbreviation C in place
ofthe
word COPY, as in the
following example:
OPEN
15,8,15
PRINTI15,
"C:DOG.2-DOG.1"
Disk
File
Concatenation
Two
or
more files may
bej~ined
together,
or
concatenated,
to
form a
single file.
To
create a new file named NEWFILE, for instance, out
of
the
data
files OLDFILE.O,
OLD
FILE.
1,
and
OLDFILE.2
on
diskette, use the
following command:
PRINT.1,
"e:
NEW
FILE
•
·OLD
FILE
I,
OLD
FILE
2"
Note: The maximum length
of
a disk command string
is
40 characters,
so keep your file names short.
Multiple-Disk
Systems
If
you have a system with more
than
one disk drive, you may copy files
from one diskette
to
another. Before you do, however, you will first need to
differentiate between disk drives.
When the
1540
Disk Drives are first powered up, they all have a device
number
of
8.
If
you connect more
than
one disk drive
to
your system, each
drive will need a different device number. The device number may be either
8,9,
10,
or
11.
To
change the device number
of
a disk drive, follow these
instructions.