Unable to Change Windows Vista Read-Only Folder Attribute

5,319

Solution 1

Start registery editor (regedit.exe) go to the folowing registery key:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Current Version\Explorer

Choose in the menu

edit ->new

and then -> DWORD value with registervalue word

UseSystemForSystemFolders

click with the right mouse on the new value and click on change Type 1 and click OK Close Regedit then you need to do the attrib -r +s c:\test (where c:\test) is your folder

Solution 2

Use the command line:

attrib FolderName -r
Share:
5,319

Related videos on Youtube

El-Hassan Farid
Author by

El-Hassan Farid

Updated on September 18, 2022

Comments

  • El-Hassan Farid
    El-Hassan Farid over 1 year

    Windows Vista and 7 use the read-only attribute of folders to also indicate that the folder is 'custom.'

    It turns out that this is preventing programs I use from updating files in my documents folder. I am unable to change the read-only setting regardless of whether I right-click on the folder and de-select the read-only checkbox on the properties tab, or if I use the 'icacls' command from the command line.

    This has been discussed before by me and others here:

    However, none of these solutions are working for me.

    Has anyone heard of a workaround or solution outside of these links? Really, all I want to be able to do is use Maven for a software project I'm developing; but my IDE stack (Netbeans 7 & Glassfish 3.x) can't update my project file in my documents folder... So at the moment I'm stuck using Ant, but I'd really prefer to migrate to Maven.

    Here are some links discussing this:

    • Harry Johnston
      Harry Johnston about 12 years
      Note that this problem represents a bug in your IDE stack; it shouldn't be paying any attention to the folder's read-only flag. I understand you've got a solution that works for you, but it may still be worth reporting the problem to the relevant developers/vendors.
  • El-Hassan Farid
    El-Hassan Farid over 12 years
    I am already an administrator on my box...
  • El-Hassan Farid
    El-Hassan Farid over 12 years
    I tried this, but the change doesn't persist...
  • hasharc
    hasharc over 12 years
    try this attrib -r +s drive:\<pad>\<foldername>
  • El-Hassan Farid
    El-Hassan Farid over 12 years
    The change still doesn't persist. It goes back to read-only when I reopen the documents folder. I've also checked for any other group policies, etc.
  • hasharc
    hasharc over 12 years
    Start registery editor (regedit.exe) go to the folowing registery key:HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Current Version\Explorer Choose in the menu edit ->new and then -> DWORD value with registervalue word UseSystemForSystemFolders click with the right mouse on the new value and click on change Type 1 and click OK Close Regedit then you need to do the attrib -r +s c:\test (where c:\test) is your folder.
  • hasharc
    hasharc over 12 years
    here is another link: support.microsoft.com/kb/326549
  • El-Hassan Farid
    El-Hassan Farid over 12 years
    changing the registry worked... if you update your answer, then I can accept it