Chapter 6 / Command Reference
DIR
(Directory)
DIR
[pathname][lP][lW]
Internal
'-
Displays:
(1)
information about all files or
the
specified files
that
are in the current directory
or
in the directory specified
by
pathname
or (2)
information
about
the
file
specified
by
pathname.
Parameters
pathname
indicates a specific file.
If
you omit
the
pathname,
MS-DOS lists
the
directory entries
for
all files
that
are
in
the
current
directory.
You
can use
the
MS-DOS wild cards
in
the
pathname.
IP
selects
the
page mode. With
IP,
display of
the
directory pauses
when
the
screen is filled.
It
displays
this
message:
Strlke
a
key
when
ready
...
To
resume display of output, press I
SPACEBAR
I.
IW
selects a wide display. With IW, MS-DOS displays filenames
only;
it
does not display sizes or modification dates.
Notes
and
Suggestions
• DIR first causes MS-DOS to display the disk's volume label,
which was assigned during formatting.
If
you
did not assign a
label, MS-DOS displays a message to
that
effect. Then MS-
DOS lists each file
with
its
size (in bytes) and the time and
date of
the
last
modification.
It
then gives
the
number of files
listed and
the
number of bytes remaining
on
the
disk.
•
If
you
do
not include a filename extension, DIR assumes
the
.*
wildcard extension.
•
If
the
filename does not include
an
extension, add a period to
the
end of
the
filename
in
the
DIR command.
•
If
the
Version 3.2 COUNTRY command in
the
CONFIG.SYS
file is
set
to a country other
than
the U.S.,
the
directory date
and
time
formats
differ.
Refer
to
Appendix
B for
more
information.
68
I '
, !
.
, ,