Lists directory contents.
dir [path|files]
The following table lists and defines examples of the dir command.
| Command | Description |
|---|---|
| dir | Lists all files of the current directory. |
| di *.txt | Lists all current-directory files that have the .txt file name extension. |
| dir c:/tmp | Lists all files in the tmp directory on the C: drive. |
| dir /ad | Lists only the subdirectories of the current directory. |