Attrib

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

+r 

Sets the read-only file attribute.

-r

Clears the read-only file attribute.

+s

Sets the system file attribute.

-s

Clears the system file attribute.

+h

Sets the hidden file attribute.

-h

Clears the hidden file attribute.

+c

Sets the compressed file attribute.

-c

Clears 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.

Top of pageTop of page

Related Topics

Command-line reference A-Z

Delete the Recovery Console

Install the Recovery Console as a startup option

Start the computer and use the Recovery Console

Recovery Console overview


Top of pageTop of page