File and Folder Read only attribute wont disable

Page 1 of 2 12 LastLast

  1. Posts : 5
    Windows 7 Ultimate 64 Bit Edition
       #1

    File and Folder Read only attribute wont disable


    When i create a new folder it automatically sets the read only attribute, if i try and turn it off it just turns back on again.

    I have tried using command prompt to disable it as well as playing with the security settings and account permissions.

    does any one have any ideas?
      My Computer


  2. jav
    Posts : 713
    Windows 7 Ultimate x86 SP1
       #2

    1. First question, why are you trying to do it?

    2. look here:
    Unable to remove Read-Only attribute from folder
    You cannot view or change the Read-only or the System attributes of folders in Windows Server 2003, in Windows XP, in Windows Vista or in Windows 7

    To view or to remove the Read-only or the System attributes of folders in Windows Vista or Windows 7
    Click Start, click Run, type cmd, and then press ENTER..
    To view the syntax for the Attrib command, type attrib /? at the command prompt.
    To remove the Read-only attribute and to set the System attribute, use the following command:
    attrib -r +s drive:\<path>\<foldername>
    For example, to remove the Read-only attribute and to set the System attribute for the C:\Test folder, use the following command:
    attrib -r +s c:\test
    Be aware that some programs may not operate correctly with folders for which the System attribute and the Read-only attribute are set. Therefore, use the following command to remove these attributes:
    attrib -r -s drive:\<path>\<foldername>
    For example, to remove both the Read-only and the System attributes from the C:\Test folder, use the following command:
    attrib -r -s c:\test
    If the Run command is not listed on the Start menu, do the following:
    Click Start, click All Programs, click Accessories, and then click Run..
    note: Open cmd with run as administrator
      My Computer


  3. Posts : 4
    Windows 7 Professional x64
       #3

    Question about the read only attribute for folders in Windows 7.

    I was trying to play warcraft III on battle.net and I got the error that the game couldn't patch the files because it couldn't write to the hdd. I then noticed that all my folders including program files were set to read only like in the following pic:



    So I went to the program files folder and opened the properties, cleared the checkbox and hit apply (I'm used to previous versions of windows where read only was different). I told it to apply the setting to all the subfolders and files. A progress bar came up and it did its thing. After this I checked and all the subfolders still had the read only box checked in the same manner as the picture above, but all the files within did not (Is this how it is by default?). This did not fix the problem with patching wc3 though.

    My question is: In unchecking the read only box and hitting apply, did that actually modify any of the attributes within the program files folder?

    After realizing why the folders are set up this way and figuring out the correct way to fix the problem by setting the user privileges I'd rather not modify this setting.

    EDIT: Judging by folders I didn't modify, all folders on my c: drive are [o] read-only and all subfiles are not. Therefore I believe that in doing what I did no changes were made to the program files or its sub-folders/files. Kinda misleading when there's a progress bar that takes a couple minutes to do nothing but fill up for show lol. Amirite?
      My Computer


  4. Posts : 565
    Windows 7 Home Premium x64
       #4

    jasonb36 said:
    When i create a new folder it automatically sets the read only attribute, if i try and turn it off it just turns back on again.

    I have tried using command prompt to disable it as well as playing with the security settings and account permissions.

    does any one have any ideas?
    I think you are seriously confusing read only attributes on a folder with read only NTFS permissions (ACL).

    How to set, view, change, or remove special permissions for files and folders in Windows XP
      My Computer


  5. Posts : 3
    windows 7
       #5

    I am having the same problem as CircatM2001 described. In this case it is with my photos. the folder properties seems to be defaulted to "read only" and when i unset the read only in the folder properties and apply it seems to unset, but it actually doesn't. This is preventing me from editing the photos.

    Any advice on how i can unset the "read only"?

    Also where can i set the preferences to prevent downloaded/imported files from defaulting to read only?

    Thanks
      My Computer


  6. Posts : 343
    Windows 7
       #6

    Tick = Enabled
    Square = Folders or files within this folder have read only flag.

    the square is present because the folder contains desktop.ini which sets folder views, folder icons, folder type or ntfs hardlinking, this file is set as system and hidden at the same time which prevents modification unless you remove both flags at the same time.
    Unnecessary obviously...

    because your issue is caused by launching the game without Run as Admin, which in turn prevents the application from reading or writing to the Program Files(Program Files (x86) directory.

    There is a easy fix for this however. simply install the Take Ownership reg patch and Take ownership of the entire Warcraft III folder. this should immediately give you full permissions over that individual folder and remove this issue without having to set the run as admin compatibility, and not compromise the entire program files folder in the process.
      My Computer


  7. Posts : 5,056
    Windows 7 x64 pro/ Windows 7 x86 Pro/ XP SP3 x86
       #7

    Try giving yourself full permissions for the folders in question.

    Windows 7 Take Ownership & Grant Permissions to Access Files & Folder
      My Computer


  8. Posts : 343
    Windows 7
       #8

    Bill2 said:
    Try giving yourself full permissions for the folders in question.

    Windows 7 Take Ownership & Grant Permissions to Access Files & Folder
    :P don't give him the hard way, it'll just make him ask more questions when we could just direct him straight to Add Take Ownership Option Shortcut in Right Click Menu of Windows 7
      My Computer


  9. Posts : 3
    windows 7
       #9

    Thanks for the advice. Yes, you were right, it is the square "read only" not the checkmark.

    I have downloaded and installed the Take Ownership patch and do get Take Ownership on the right click menu. i Take ownership of the folder in question (in this case i folder of .jpg pics from a friend) and get a prompt asking me if i allow the program to make changes to the computer, which i do of course and the cmd window pops up for a microsecond so it looks like the program is doing its thing...

    However after doing this repeatedly, it does not change the situation: i still have a read only folder which i cannot unset the read only (square).

    What am i doing wrong?
      My Computer


  10. Posts : 343
    Windows 7
       #10

    you aren't doing anything wrong, just not understanding.

    the square will not be removed, it cannot be on NTFS partitions.

    If it still cannot write to the folder, then the only solution is to run the application as admin everytime you use it. You can do this manually via the right click menu, or enable it as a compatibility option in the applications properties.

    Depending where the folder is placed, it will be restricted to the parent folders permissions if the folder inherits them.

    I was about to type a bunch of unnecessary stuff, when all that needs to be done is the contents of the folder moved into a newly created folder on your drive.
      My Computer


 
Page 1 of 2 12 LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 03:39.
Find Us