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
Açıklaması şöyleC:\>attrib /dSH C:\$Recycle.BinR C:\Documents and SettingsA SH I C:\hiberfil.sysA SH C:\pagefile.sysC:\PerfLogsR C:\Program FilesR C:\Program Files (x86)H I C:\ProgramDataSH I C:\RecoveryA SH C:\swapfile.sysSH C:\System Volume InformationR C:\UsersC:\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.
Hiç yorum yok:
Yorum Gönder