Skip to main content

List directory contents.

:: To show the contents of the current directory:
dir

:: To show the contents of a given directory:
dir <path\to\directory>

:: To show the contents of the current directory, including hidden ones:
dir /a

:: To show the contents of a given directory, including hidden ones:
dir <path\to\directory> /a

:: To show a bare list of directories and files, with no additional information:
dir /b