Lists or modifies file attributes.
attrib [+r|-r] [+a|-a] [+s|-s] [+h|-h] [[drive:][path] filename] [/s[/d]]
Parameters | |
---|---|
| |
Parameter | Purpose |
| |
[+r] | Specifies the read-only attribute. |
[−r] | Clears the read-only attribute. |
[+a] | Specifies the archive attribute. |
[−a] | Clears the archive attribute. |
[+s] | Identifies the file as a system file. |
[−s] | Clears the system file attribute. |
[+h] | Specifies the hidden file attribute. |
[−h] | Clears the hidden file attribute. |
[[drive:][path] filename] | Sets the drive, path, and file name to be processed. |
[\s] | Applies changes to matching files in the current directory and all subdirectories. |
[\d] | Processes directories. |