Hardware Reference
In-Depth Information
Command
Function
takes the same filename as the original and the user is prompted
to insert the source and destination disks at the appropriate
point. Where both source and destination file specifications are
included, the file is copied to the specified drive and the copy
takes the specified name. Where only a destination drive is
specified (i.e. the destination filename is omitted) the
COPY
command copies the file to the specified drive without altering
the filename.
COPY
may be used with the
*
and
?
wildcard
characters in order to copy all files for which a match is found
(see page 113).
Examples:
COPY A
\
:ED.COM B:
copies the file
ED.COM
present in the root directory of the disk in
drive A: to the disk present in drive B:. The copy will be given
the name
ED.COM
.
On a single-drive system the only available floppy drive can be
used as both the source and destination when the
COPY
command
is used. The single physical drive will operate as both drive A:
and drive B:, and you will be prompted to insert the source and
destination disks when required.
COPY
is unable to make copies files located within
sub-directories. If you need this facility use
XCOPY
with the
/s
switch (see page 127).
The
DATE
command allows the date to be set or displayed.
Examples:
DATE
displays the date on the screen and also prompts the user to make
any desired changes. The user may press
<RETURN>
to leave the
settings unchanged.
DATE 12-08-99
sets the date to 27th August 1999.
DATE
See
ERASE
.
DEL
The
DIR
command displays the names of files present within a
directory. Variations of the command allow the user to specify
the drive to be searched and the types of files to be displayed.
Further options govern the format of the directory display.
Examples:
DIR
displays all files in the current default directory.
A:
\
DIR
changes the default drive to A: (root directory) and then displays
the contents of the root directory of the disk in drive A:.
(
continued
)
DIR