MLHA - PC- Software - DOS - Commands - External - ATTRIB

 

Sets or displays file attributes.
  

ATTRIB [ħR][ħA][ħS][ħH] [[drive:][path]file] [/S]
+   Sets an attribute
- Resets an attribute
R ReadOnly attribute
A Archive attribute
- set when the file is created or changed
- may be reset by backup programs or XCOPY
S System attribute
H Hidden attribute
/S Process files in sub directories
 
Examples
>attrib -a *.* /s Reset the archive bit in all files in current directory and all subdirectories.
>attrib +r a:\doc\*.bak Write-protect all *.bak files in the directory \doc\ on drive A.
C:\>attrib *.txt
  A   H      SETUPLOG.TXT  C:\SETUPLOG.TXT
  A  SH      NETLOG.TXT    C:\NETLOG.TXT
  A          LOGFILE.TXT   C:\LOGFILE.TXT
  A   H      BOOTLOG.TXT   C:\BOOTLOG.TXT
  A          SETUPXLG.TXT  C:\SETUPXLG.TXT
Display  attributes for all *.txt-files
 
Notes