Index | Examples | Syntax  



ATTRIB--Notes

Combining the Hidden and System attributes If a file has both the Hidden and System attributes set, you can clear both attributes only with a single ATTRIB command. For example, to clear the Hidden and System attributes for the RECORD.TXT file, you would type: ATTRIB -S -H RECORD.TXT Using ATTRIB with 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. Changing the attributes for a directory You can display or change the attributes for a directory. To use ATTRIB with a directory, you must explicitly specify the directory name; you cannot use wildcards to work with directories. For example, to hide the directory C:\SECRET, you would type the following: ATTRIB +H C:\SECRET The following command would affect only files, not directories: ATTRIB +H C:*.* Viewing archive attributes The Archive attribute (a) is used to mark files that have changed since they were previously backed up. The MSBACKUP, RESTORE, and XCOPY commands use these Archive attributes. For information about Archive attributes, see the <MSBACKUP>, <RESTORE>, and <XCOPY> commands.
-Top- | Examples | Syntax