Listing the Contents of a Directory
To list the files in the current directory, type DIR and press
Enter.
MS-DOS lists the names of the files in the current directory on the
current drive. If the listing is too long to fit on one screen, add the /P
switch to the command, like this:
DIR /P
This switch causes MS-DOS to pause after displaying each screenful
of information. To see the next screenful, press any key. Another way
to view a long directory is to use the /W switch:
DIR /W
This results in a wide-format directory listing.
To list the contents of a different drive or a different directory, include
the appropriate drive designator and/or pathname in the command.
For example, to see what is in the root directory of the diskette in
drive A, type the following and press
Enter:
DIR A:\
Directory listings include the following information about each file:
the name and extension, the size in bytes, and the date and time the
file was created or last modified (whichever is later). Subdirectories in
the directory are listed along with files; they are identified as
subdirectories by the letters < DIR >. At the bottom of the listing,
MS-DOS indicates the number of bytes on the disk that are still
available for use.
Using MS-DOS with Your Equity 386
5-15