Could not remove Read-Only attribute in Windows

When uncheck the “read-only” checkbox option,and to apply to all subfolders,it works and  read-only checkbox remains checked.

This is a bug since Win95 was released and this can be ignore.

Can be check with attrib command
Here are the possible values:

READONLY 0x1
HIDDEN 0x2
SYSTEM 0x4
DIRECTORY 0x10
ARCHIVE 0x20
DEVICE 0x40
NORMAL 0x80
TEMPORARY 0x100
SPARSE_FILE 0x200
REPARSE_POINT 0x400
COMPRESSED 0x800
OFFLINE 0x1000
NOT_CONTENT_INDEXED 0x2000
ENCRYPTED 0x4000

0x14 = 0x10 + 0x4, means it is Directory and System. 0x11 = Readd only + directory.

>attrib -r +s c:\testing

>attrib c:\testing
S         C:\testing

Run as administrative privileges

>fsutil usn readdata c:\testing

Major Version    : 0x2
Minor Version    : 0x0
FileRef#         : 0x0009000000015a8e
Parent FileRef#  : 0x0005000000000005
Usn              : 0x000000001a5bb530
Time Stamp       : 0x0000000000000000 00:00:00 01-01-1601
Reason           : 0x0
Source Info      : 0x0
Security Id      : 0x0
File Attributes  : 0x14
File Name Length : 0xe
File Name Offset : 0x3c
FileName         : testing

Using attrib command
C:\>attrib /?
Displays or changes file attributes.

ATTRIB [+R | -R] [+A | -A ] [+S | -S] [+H | -H] [+I | -I]
[drive:][path][filename] [/S [/D] [/L]]

+   Sets an attribute.
–   Clears an attribute.
R   Read-only file attribute.
A   Archive file attribute.
S   System file attribute.
H   Hidden file attribute.
I   Not content indexed file attribute.
[drive:][path][filename]
Specifies a file or files for attrib to process.
/S  Processes matching files in the current folder
and all subfolders.
/D  Processes folders as well.
/L  Work on the attributes of the Symbolic Link versus
the target of the Symbolic Link

Advertisements

Posted on November 23, 2013, in Uncategorized, Windows. Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: