Microsoft Windows – Attrib (Command) “Not resetting system file”

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

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:\>
SOURCE

LINK (Windows-commandline.com)

LANGUAGE
ENGLISH