All /
(switches) in Windows don't have any filter purposes.
I know in Linux it is -
(options).
At a Windows command prompt, how can I show only Directories and not Files?
command linewindows
All /
(switches) in Windows don't have any filter purposes.
I know in Linux it is -
(options).
At a Windows command prompt, how can I show only Directories and not Files?
Best Answer
This is done by filtering by attributes.
dir [somedir] /ad
will show all entries with the "directory" attribute. It also shows junction points.From
dir /?
:From Microsoft's TechNet - Dir: