Is there a command on the Windows command-line that can list hidden folders?
I've tried dir -a:dh
but that doesn't work for me.
command linewindows
Is there a command on the Windows command-line that can list hidden folders?
I've tried dir -a:dh
but that doesn't work for me.
Best Answer
Use the following command:
The difference between what you were typing and this command is that you were using a
-
to indicate the switch, not a/
. In most windows command line applications, this doesn't matter, but in the case of thedir
command, you must use a slash, not a dash.The
/a
switch changes which attributes are displayed.h
shows hidden files andd
shows just directories. Make sure you keep the trailing slash on the end of the folder path. I just tested, and it worked fine.