How to List Directories Only From Command Line in Windows
Submitted by ingram on Sat, 11/11/2017 - 10:27pm



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.
Bookmark/Search this post with
Like this article?? Check out these:
User login
Popular content
Today's:
All time:
Last viewed:
Top Categories
Linux
Command Line
ubuntu
windows
Terminal
Windows 7
Exchange 2010
Exchange
Open Source
hosted exchange
hacking
Bible
Christain
SSH
Multi-Tenant
HP
WINE
Server 2008 R2
Switch
Password Recovery
Active Directory
Internet Explorer
nmap
One-Liner
Lync
Citrix
Games
Citrix Receiver
DNS
OpenPanel
Server
ping
Pure-FTPd
Script
RAID
robocopy
server 2008
SonicWall
profile migration
Windows 8
VPN
VM
tweak
Unity
PsExec
ESX
Outlook
BSOD
Awk
ASCII
Control Panel
iis
Exchange 2010 SP1
iptables
IE9
Fail2ban
IE ESC
7
2012
2008
Post new comment