Unable to Change Windows Vista Read-Only Folder Attribute
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
Related videos on Youtube
El-Hassan Farid
Updated on September 18, 2022Comments
-
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:
- Unable to change Windows file permissions
- Having trouble with Windows XP Read Only Settings on a folder
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 about 12 yearsNote 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 over 12 yearsI am already an administrator on my box...
-
El-Hassan Farid over 12 yearsI tried this, but the change doesn't persist...
-
hasharc over 12 yearstry this attrib -r +s drive:\<pad>\<foldername>
-
El-Hassan Farid over 12 yearsThe 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 over 12 yearsStart 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 over 12 yearshere is another link: support.microsoft.com/kb/326549
-
El-Hassan Farid over 12 yearschanging the registry worked... if you update your answer, then I can accept it