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

10

5

A long time ago, I remember hiding some really personal files on my computer. Something that nobody could ever find, so I buried them down pretty darn good.

Now to my problem, I don't remember where.

Do anyone know a way to scan a drive and list all hidden folders and/or files?

I know how to view hidden files in Windows, but as far as I know, there is no way to search for them? I've been looking for a program, but I couldn't find one - and now I'm here, asking the experts. ;)

I'd really appreciate any tips.

Angie

Posted 2010-11-21T20:25:25.467

Reputation: 101

Answers

18

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".

adrianbanks

Posted 2010-11-21T20:25:25.467

Reputation: 1 054

I like this idea. Good answer. – None – 2010-11-21T20:33:14.837

Thanks! I was hoping something like this could help me. Is there any way to display all folders (or files), without knowing the name? I'm not sure about the name of the file. Good idéa though. :) – Angie – 2010-11-21T20:46:18.023

@Angie: That command lists all hidden files. – adrianbanks – 2010-11-21T20:47:46.077

Just change it to dir /s /a:h C:*.* > hidden.txt to view all files and folders on a drive. The command he gave would only give hidden files and folders in the current directory and lower – Canadian Luke – 2011-10-06T16:41:11.527

@Angie see the edits to the answer: This script finds ALL the hidden files and then saves a list of those files in a file called hidden.txt so that you can reference the list easily rather than trying to go back and forth in the command window referencing the list of found files. – music2myear – 2011-10-06T17:34:07.300

5

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.

Brian

Posted 2010-11-21T20:25:25.467

Reputation: 59

didn't work in Windows 7 x64. said "no items match your search" but I know I have hidden files and I can see them when I navigate to where they are – Zvi Twersky – 2018-05-03T09:35:18.563

1

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

John T

Posted 2010-11-21T20:25:25.467

Reputation: 149 037

I've been trying to find that program for months now, but i just couldn't remember the name. Thanks. :) – Angie – 2010-11-21T20:53:55.987

0

Go get Total Commander, enable the hidden and system files setting, and run a search. It's relatively fast (quicker than Windows 7 built-in search in my opinion), and as long as you know part of the file name, you should be fine.

user3463

Posted 2010-11-21T20:25:25.467

Reputation:

I ran a search for all hidden textfiles, and it didn't return the files i was looking for. It did however find some other hidden textfiles, so, i most likely have the files on my laptop. I'll run a search on my laptop tomorrow, thanks a bunch! :) – Angie – 2010-11-21T20:52:56.597