Article ID: 81361 - View products that this article applies to.
This article was previously published under Q81361
If a file is marked with both the hidden (h) and system (s) attributes, and you attempt to remove one of the attributes with the MS-DOS ATTRIB command, the command fails and an error message similar to following is displayed:
where <type> is "system" or "hidden."
Not resetting <type> file [drive:][path][filename]
Similarly, if the file is marked read-only (r) and has the hidden(h) and system (s) attribute(s) set, you must remove the hidden and system attribute(s) before you can change the read-only attribute.
Use the MS-DOS ATTRIB command to remove BOTH the hidden and system attributes at the same time. If the file is marked hidden, system, AND read- only, either remove all attributes simultaneously, or remove hidden and system attributes first, then the read-only attribute.
If a file has both the hidden and system attributes set, an attempt to remove only one of the attributes failS with one of the above error messages. For example, if the file C:\ONE.TWO is marked as both system and hidden, the command(s)
c:\dos\attrib c:\one.two -hproduce the respective error messages:
c:\dos\attrib c:\one.two -s
Not resetting system file C:\ONE.TWO
To remove either attribute, use the following command to remove BOTH attributes at the same time:
Not resetting hidden file C:\ONE.TWO
c:\dos\attrib c:\one.two -s -hIf necessary, you can use the following command to remove the read-only, system, and hidden attributes simultaneously:
c:\dos\attrib c:\one.two -s -h -r
Article ID: 81361 - Last Review: November 16, 2006 - Revision: 2.1
Contact us for more help
Connect with Answer Desk for expert help.