5

A few years ago, I had hidden my folders and everything using this command:

attrib +h +s +r FolderName/FileName. 

Now I have forgotten all the folders/filenames. I, Of course know how to show my folders and files using this command:

attrib -h -s -r FolderName/FileName.

But I just forgot all my folder names.

Is there any way to show a list of hidden folders/files or show my all folders/files at once?

Toto
  • 19,304
Huratio
  • 53

3 Answers3

11

Open Powershell as administrator, run the following cmdlet:

Get-ChildItem C:\ -Hidden -Recurse

The above cmdlet will list all the directories and files hidden for C: drive. If you don't want to check subfolders, remove -Recurse.

Oxygel
  • 3
11

To do so recursively:

attrib -s -h -r /s "Folder\*"

Additional ways:

  • Explorer:
    ViewOptionsViewHidden files and directoriesShow...OK

  • Registry:
    Reg Add HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v Hidden /t REG_DWORD /d 1
    Reg Add HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v ShowSuperHidden /t REG_DWORD /d 1
    

  • Cmd:
    Dir /A:sh
    
JW0914
  • 9,096
1

Go to your target folder in a command prompt as Admin and simply use:

ATTRIB /D /S

and it will display all the attributes on files and folders in your target folder and all subfolders.