When we use attrib command to change read-only or system attributes of a hidden file we get the error “Not resetting hidden file”
See the examples below.
C:>attrib test.txt A H C:test.txt C:>attrib +R test.txt Not resetting hidden file - C:test.txt C:>attrib +S test.txt Not resetting hidden file - C:test.txt C:>
The workaround in this case is to specify both the attributes like below.
E:>attrib test.txt A H E:test.txt E:>attrib +R test.txt Not resetting hidden file - E:test.txt E:>attrib +R +H test.txt E:>attrib test.txt A HR E:test.txt E:>
Similarly we can set system attribute too.
If you are trying to remove readonly attribute from a hidden file you would get the same error i.e ‘Not resetting hidden file‘. You can apply the same workaround for this case too. The command we need to use in this case is given below.
attrib -R +H filename
Basically you need to specify what attributes you want the end file to have.
I have a file which has all attribute set
I wanted to unset all attribute, but not able to achieve it. Let me know how to unset all.
I think you don’t have sufficient permissions to modify this file. Check the permissions of the file using this below command.
Thank You Admin,
I was not able to change attributes with attrib. I found your post and used cacls to change the permissions to full. I was then able to change the attributes with attrib and then delete the file. Even FileAssassin was not able to delete the file. This was a tough one.
I believe that file is on a disc… You cannot delete it.
I hide some file in window 7 and now i changed my window with new window 7 this time it says access denied
I want to mark a whole directory as ready for archive.
“Attrib +A /S /D E:\*” you know.
But with the above:
“Not resetting hidden file – E:\OneDrive\desktop.ini”
now, these files won’t be copied right?
And I can’t just specify +A +H as you mentioned, because that will hide the 2000,000 files that are not hidden.
What to do then?