How to List Directories Only From Command Line in Windows

Printer-friendly versionPDF version
How to List Directories Only From Command Line in Windows

If you are needing to list only the directories in a folder, this can be accomplished with the DIRĀ command in Windows. By default, DIR will list all files and folders. To list only directories, run DIR with the following options:

dir /AD

This will give you a list of all the directories in the folder where the command was ran.

Post new comment