List all hidden folders/files in Windows (7)?

Open a command prompt and change directory to the root of your drive. Then run:

dir /S /A:H > hidden.txt

This will get you a list of all of the hidden files on that drive and save that list in a file called hidden.txt.

Note: This does NOT search for all hidden files NAMED "hidden.txt".


Better late than never, but I found the solution to your problem using only Windows 7 Explorer. Just wanted to get this out there since it's not really documented.

Once you've already enabled "Show Hidden Files and Folders", in your Explorer search box type "attributes:2" (without the quotes). This will search the entire tree for all files marked hidden. The number "2" is a number representation of the file attribute "hidden".

This link gives you a list of all the different number codes and how they translate into file attributes.

This post led me to finding the answer.


Use everything. If you remember a small piece of a filename, it will help you narrow it down pretty quick.