dir

Lists directory contents.

Syntax

dir [path|files]

Examples

The following table lists and defines examples of the dir command.

Table 1. dir Command-line debugger command-Examples
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.