Saturday, October 19, 2013

How do you fix this Windows 7 problem?

Here is the problem statement:
If you create a new folder on Windows 7 desktop the folder attribute is read-only. Of course you cannot read a folder, the attribute refers to files within the folder. You may try to uncheck it in the folder properties, click Apply and click OK. If you open the folder again you will see that the read-only properties is back.

If you had for example, a word document or something and you try to modify and try to save it you get a message that it cannot be saved as it is read-only.

Trying to change the file attribute from the properties window will not work.

Work around:

You have to use the 'attrib' command from your DOS screen.

Type cmd in Start's search box.
Windows Command Processor 'cmd' will be the first one at the top.
Right click 'cmd' and click Run as Administrator
In the CMD screen type the following:

C:\attrib -r +s C:\Users\User1\Desktop\X
User1 is user whose desktop has a problem folder X which needs this fix.

The command attrib is described as:

C:\Windows\system32>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.
      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

Other resource:

No comments: