Using DIR

The DIR command, which lists files and folders in either the current or any other specified drive or folder, has many options that vary with the version of Windows used.

To use the DIR command

1.
Open a command-prompt window or boot the system to a command prompt.
2.
Type DIR followed by any optional switches you want to use.
3.
Press Enter to view the results.
4.
To pause the output from DIR after each full page of date is listed, add /P (Pause) to the command.

Windows 9x/Me uses these options for DIR:

 A:/>DIR/? Displays a list of files and subdirectories in a directory. DIR [drive:][path][filename] [/P] [/W] [/A[[:]attributes]] [/O[[:]sortorder]] [/S] [/B] [/L] [/V] [/4] [drive:][path][filename] Specifies drive, directory, and/or files ...

Get Absolute Beginner's Guide to A+ Certification now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.