The hidden attribute is particularly useful with directories, both because it can help reduce screen clutter by omitting hidden directories from directory listings and because it can help you hide directories and the files they contain from casual view.
If you're using version 3.2 or a later version of MS-DOS, you can also use the Attribute command to control the archive attribute of a file, which tells MS-DOS (or any other program that checks it) whether the file has been changed since the last time it was backed up for archival storage. Another attribute is the system attribute that is used to tell MS-DOS to treat a file as a system (program) file. If you have version 5 or later, you can use the system attribute. This attribute is normally used only by programmers.
This chapter describes the Attribute command in more detail and shows other examples of its use. The command has the following parameters:
attrib +R -R +A -A +H -H +S -S
+R turns on the read-only attribute; -R turns it off.
+A turns on the archive attribute (sometimes called the archive bit); -A turns it off.
+H turns on the hidden attribute; -H turns it off. If you have version 5 or later, you can use the hidden attribute.
+S turns on the system attribute; -S turns it off. If you have version 5 or later, you can use the system attribute.
/S, in versions 3.3 and later, applies the Attribute command to every file in each subdirectory contained in
Through version 4 of MS-DOS, if you omit all parameters except
In versions 5 and later, omitting all parameters, including