Published on http://www.itswapshop.com (http://www.itswapshop.com)

Home > How to List Directories Only From Command Line in Windows

How to List Directories Only From Command Line in Windows

Submitted by ingram on Sat, 11/11/2017 - 10:27pm
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Ā  [1]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.

Privacy Policy

support @ itswapshop . com


Source URL: http://www.itswapshop.com/articles/how-list-directories-only-command-line-windows

Links:
[1] https://technet.microsoft.com/en-us/library/cc755121(v=ws.11).aspx