20 Mart 2022 Pazar

Windows attrib komutu

Giriş
Dosya veya dizini attributes hakkında bilgi verir.

H : Hidden anlamına gelir
S : System anlamına gelir

/d seçeneği
Örnek
Şöyle yaparız
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
Açıklaması şöyle
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.

Hiç yorum yok:

Yorum Gönder