Is there a command on the Windows command-line that can list hidden folders?
dir -a:dh but that doesn't work for me.
Use the following command:
dir /a:hd C:\folder\
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 the
dir command, you must use a slash, not a dash.
/a switch changes which attributes are displayed.
h shows hidden files and
d shows just directories. Make sure you keep the trailing slash on the end of the folder path. I just tested, and it worked fine.
dir/ashould show hidden folders.
dir /a:dshows all directories.
dir /a:hshows all hidden files.
dir /adh (without the colon) to combine.
Process To View All The Hidden Files And Folder using Command Prompt in Windows:
attrib -s -h -r /s /d *.*and hit Enter.
To list all files and folders, including hidden and system ones, use
dir /a C:\