Attrib

Microsoft Windows XP, Microsoft Windows XP OEM Upgrade

Changes file attributes for a single file or directory. This command sets or removes the read-only, system, hidden, and compressed attributes assigned to files or directories.

The attrib command with the parameters listed below is only available when you are using the Recovery Console. The attrib command with different parameters is available from the command prompt.

attrib [+r|-r] [+s|-s] [+h|-h] [+c|-c] [[drive:][path] filename]

Parameters
+rSets the read-only file attribute.
-rClears the read-only file attribute.
+sSets the system file attribute.
-sClears the system file attribute.
+hSets the hidden file attribute.
-hClears the hidden file attribute.
+cSets the compressed file attribute.
-cClears the compressed file attribute.
[[drive:][path] filename]Specifies the location and name of the directory or file you want to process. You can change attributes for only one file or directory at a time.

Note: You can change multiple attributes for a particular file or directory with a single command.

Information in this document was provided by the manufacturer.