subscribe: Posts | Comments

DIR (Directory) Command

Comments Off

The DIRECTORY command lists the names and sizes of all files located on a particular disk.

•C> dir a:
•Shows directory of drive A
•C> dir b:
•Shows directory of drive B
•C> dir \agis
•Shows files in a subdirectory on drive C (default)
•C> dir
•Shows directory of drive C
•C> dir /w
•Shows directory in wide format, as opposed to a vertical listing.
All the files are listed at the screen, you can stop the display by typing CTRL-BREAK. If you ask for a directory on the A or B drives, be sure there is a diskette in the drive and that the diskette has been formatted. If the drive is empty, or if the diskette is unformatted, the DOS will respond with an error message.