Attrib
Displays or changes file attributes.
This command displays, sets, or removes the read-only, archive, system, and
hidden attributes assigned to files or directories.
attrib [+r|-r] [+a|-a] [+s|-s] [+h|-h][[drive:][path] filename] [/s]
Parameters
[[drive:][path] filename]
Specifies the location and name of the directory, file, or set of files you
want to process.
+r
Sets the read-only file attribute.
-r
Clears the read-only file attribute.
+a
Sets the archive file attribute.
-a
Clears the archive file attribute.
+s
Sets the file as a system file.
-s
Clears the system file attribute.
+h
Sets the file as a hidden file.
-h
Clears the hidden file attribute.
/s
Processes files in the current directory and all of its subdirectories.
See Also
Copy
Xcopy
More Information About Attrib
Attrib--Notes
Attrib--Examples