• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

attrib -C on a read only file?

May 20, 2009
I would like to know if it is possible to change the C attribute on a read only file, without changing anything else.
I tried on two test files on two different systems.
On the first, I did not get any error but the attributes were not changed.
On the second, I go an error.

R__A______C____  F:\work\test\a.txt

[F:\work\test]attrib -c a.txt
R__A______C____ -> R__A___________  F:\work\test\a.txt
TCC: (Sys) The handle is invalid.
Thank You and regards

Rodolfo Giovanninetti
Top Bottom