| The
most basic command in DOS is the DIR command. This command lists all the files and
directories that are currently available in your system. DOS allows you to have switch for
your DIR command. The following are a list of DIR command switches. |
| DIR /W |
This command
displays all files using the current default switches. |
| DIR / S |
This command
displays files that has the system attribute |
| DIR /A |
This command
displays all the files |
| DIR /C |
This command
displays no directories |
| DIR /R |
This command
make switches to become default |
| DIR /D |
This command
displays files without the system's attribute |
| DIR /L |
This command
displays long format with date, size, and time |
| DIR /N |
This command
displays |
| DIR /P |
This command
displays a one page at a time column files and directories and pauses. |
| DIR /2 |
This command
displays two columns format with data, size and time |