Displays or changes file attributes.
attrib [+r|-r] [+a|-a] [+s|-s] [+h|-h][[drive:][path][filename][/s]
[+r|-r] - +r/-r sets or clears the read-only file attribute
[+a|-a] - +a/-a sets or clears the archive file attribute
[+s|-s] - +s/-s sets the file as a system file, or clears the system file attribute
[+h|-h] - +h/-h sets the file as a hidden file, or clears the hidden file attribute
[/s] - /s processes files in the current directory and all of its subdirectories.
Specifies the location and name of the file or set of files you want to process.
Notes
Groups of files
You can use wildcards (? and *) with the filename parameter to display or change the attributes for a group of files. If a file has the system or hidden attribute set, you must clear that attribute before you can change any other attributes for that file.
Archive attributes
The archive attribute (a) is used to mark files that have changed since they were previously backed up. The backup, restore, and xcopy commands use these attributes. For information about archive attributes, see the backup, restore, and xcopy commands.
Copyright © 1994-1998 Sage U.S. Inc. All rights reserved. |
Last updated February 08, 1999. |