Hardware Reference
In-Depth Information
Command
Function
DIR *.BAS
displays all files with a
BAS
extension present in the current
default directory drive.
DIR C:
\
DEV.*
displays all files named
DEV
(regardless of their type or extension)
present in the root directory of drive C: (the hard disk).
DIR C:
\
MC
\
*.BIN
displays all files having a
BIN
extension present in the
sub-directory named
MC
on drive C: (the hard disk).
DIR/W
displays a directory listing in 'wide' format (excluding size and
creation date/time information) of the current default directory.
To prevent directory listings scrolling off the screen use
DIR /P
or
DIR
MORE
. These commands will pause the listing
at the end of each screen and wait for you to press a key before
continuing.
Later versions of DOS include many options for use with the
DIR
command including sorting the directory listing and
displaying hidden system files.
The
ERASE
command is used to erase a filename from the
directory and release the storage space occupied by a file. The
ERASE
command is identical to the
DEL
command and the two
may be used interchangeably.
ERASE
may be used with the
*
and
?
wildcard characters in order to erase all files for which
a match occurs.
Examples:
ERASE PROG1.ASM
erases the file named
PROG1.ASM
from the disk placed in the
current (default) directory.
ERASE B:
\
TEMP.DAT
erases the file named
TEMP.DAT
from the root directory of the
disk in drive B:.
ERASE C:
\
*.COM
erases all files having a
COM
extension present in the root
directory of the hard disk (drive C:).
ERASE A:
\
PROG1.*
erases all files named
PROG1
(regardless of their type extension)
present in the root directory of the disk currently in drive A:.
ERASE
See
MKDIR
.
MD
The
MKDIR
command is used to make a new directory or
sub-directory. The command may be abbreviated to
MD
.
(
continued
)
MKDIR