Read-only Attribute for a Windows folder

Page 2 of 2 FirstFirst 12

  1. Posts : 7
    Windows 7 Enterprise 64 bit
    Thread Starter
       #11

    Yes, the path is correct.

    c:\>cd "C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files"

    C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files>

    The double quotes are required because of the spaces in the folder name.
      My Computer


  2. Posts : 72,043
    64-bit Windows 11 Pro for Workstations
       #12

    As a test, make sure that the command prompt is dragged wide enough to fit the command in one line before pasting it in case the command is carrying over to the next line and not being properly executed.

    Please go ahead and post a screenshot showing the command prompt after using the attrib command to see if anything may stand out.
      My Computer


  3. Posts : 25,847
    Windows 10 Pro. 64/ version 1709 Windows 7 Pro/64
       #13

    Thanks Brink.

    As a test, make sure that the command prompt is dragged wide enough to fit the command in one line before pasting it in case the command is carrying over to the next line and not being properly executed.
    I didn't know that might cause a problem. I will store that in one of my brain cells.

    Back to watching.
      My Computer


  4. Posts : 2,468
    Windows 7 Ultimate x64
       #14

    The read only attribute is in almost every case totally irrelevant and always ignored.
    Look again at the error message, I'm pretty sure it clearly refers about permissions and not to "read only". The usual cause of this error is that the web server cannot write to that temporary location, so you must give its user account write permissions there. This often happens when deploying in a real web server, as opposed in development with the Visual Studio toy dev server.
      My Computer


  5. Posts : 7
    Windows 7 Enterprise 64 bit
    Thread Starter
       #15

    In response to Brink's suggestion, the command was run again in an expanded command prompt to prevent wrapping of the command. The result was the same though.

    C:\>attrib -r +s "C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NETFiles"
    File not found - C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NETFiles

    In response to Alejandro85's comment about the permissions, the scenario I've encountered seems to be identical to that described in the MS Tech Note (https://support.microsoft.com/en-us/kb/326549). Their recommendation is to run the command shown above as an Administrator.

    I'll have to find a work-around for the time being and hopefully can address this at a later date. If I come upon a solution, I'll check back and will post the solution on this forum.

    Brink - thanks for all of your help on this.
      My Computer


  6. Posts : 72,043
    64-bit Windows 11 Pro for Workstations
       #16

    If you like, you might see if taking ownership of the folder may help.

    Take Ownership Shortcut
      My Computer


 
Page 2 of 2 FirstFirst 12

  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 04:50.
Find Us