"Super" Hidden Folder?

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

"Super" Hidden Folder?

Message par ForumBot »

"Super" Hidden Folder?
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: "Super" Hidden Folder?

Message par ForumBot »

In explorer, you can set *"Show hidden files, folders, and drives"*, but there is another setting for *"Hide protected operating system files (Recommended)"*. The latter one is usually enabled.

When a folder has the system and hidden flag set, it is configured as secured operating system file and remains hidden if show hidden files is turned on.

By typing `attrib /d` from a command prompt in the folder, you can see if this is the case.

See this example:

```
C:\>attrib /d
SH C:\$Recycle.Bin
R C:\Documents and Settings
A SH I C:\hiberfil.sys
A SH C:\pagefile.sys
C:\PerfLogs
R C:\Program Files
R C:\Program Files (x86)
H I C:\ProgramData
SH I C:\Recovery
A SH C:\swapfile.sys
SH C:\System Volume Information
R C:\Users
C:\Windows

```

As you can see, the swapfile.sys, a system file has both +S and +H set, and thus it remains hidden unless you have the Hide protected operating system files (Recommended) unchecked in your settings.

The A stands for Archived, and the I for indexed. Type `Attrib /?` to get a full list of each letter.

In order to make the folder visible, you have to type `Attrib -s -h "Old HDD"`

Even though you can set the s and h individually, removing the s attribute also requires the h to be removed.

Also, explorer can set attributes on a file, but if you set it on a folder, the changes are usually ignored. With attrib, it just always works.
Répondre

Revenir à « Windows 11 »