attrib not resetting system file

by admin on August 28, 2010

When we use attrib command to change read-only or hidden attributes of a system file, we get the error “Not resetting system file“.

Examples:

E:\>attrib test.txt
A  S         E:\test.txt
E:\>attrib +R test.txt
Not resetting system file - E:\test.txt
E:\>attrib +H test.txt
Not resetting system file - E:\test.txt
E:\>

We can fix this problem by adding extra ‘+S ‘ to the attrib command.

E:\>attrib +R test.txt
Not resetting system file - E:\test.txt
E:\>attrib +R +S test.txt
E:\>attrib test.txt
A  S R       E:\test.txt
E:\>

{ 5 comments… read them below or add one }

Anonymous May 24, 2011 at 7:38 am

E:\>attrib -s

Reply

Techblogger May 24, 2011 at 9:34 am

Reply to the above comment:
What if we don't want to remove system attribute?
Instead of removing system attribute and setting it again, we can just use +R +S.

Reply

Anonymous August 7, 2011 at 3:31 pm

thats good.
just attrib -s -h /s /d
all hidden files can now be seen and no option is greyed out.

Reply

KK March 6, 2012 at 7:22 pm

Thanks . Its working for me.

kamesh May 5, 2012 at 11:21 am

attrib -s -h /s /d is working perfectly

Reply

Leave a Comment

HTML tags are not allowed.

Previous post:

Next post: