Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Read-only Attribute for a Windows folder

25 Aug 2016   #1
Bontrager

Windows 7 Enterprise 64 bit
 
 
Read-only Attribute for a Windows folder

Im running a Visual Studio app that fails because the folder Temporary ASP.NET Files is Read-only. In Windows Explorer, there is a checkmark next to Read-only in the folder properties. However, it does not remain unchecked if I uncheck it, even though Im an Administrator.

If I display the Attributes column in Windows Explorer the only attribute indicated for this folder is D (for Directory).

I also tried to display the folder attributes in a Command Prompt as an Administrator using the attrib command as follows:

c:\Windows\Microsoft.NET\Framework64\v2.0.50727>attrib /d /s "Temporary ASP.NET Files"


This returns the following without indicating any attributes:

c:\Windows\Microsoft.NET\Framework64\v2.0.50727>

The Read-only attribute reportedly can be removed through a command prompt by using the R parameter. I would rather not run this command though without first confirming that the Read-only attribute is enabled.

My question is this why would this folder have Read-only checked in the folder properties, but does not display this attribute in the Attributes column of Windows Explorer nor in a command prompt as described here?

Thanks.


My System SpecsSystem Spec
.
25 Aug 2016   #2
torchwood

W7 home premium 32bit/W7HP 64bit/w10 tp insider ring
 
 

Hi Bontrager,
Might be me but thats an OLD version of .Net, current version 4.6.X.
try updating to the current version, things might change,

Roy
My System SpecsSystem Spec
25 Aug 2016   #3
Bontrager

Windows 7 Enterprise 64 bit
 
 

Thanks, but the app involved was developed under and still requires Visual Studio 2008 which can run no version later than .NET 3.5.

That's a moot point though - the question is why would any folder's properties have Read-only checked, but not show the Read-only attribute when the Attribute column is displayed in Windows Explorer nor when the Attrib command lists the attributes for that folder in a Command Prompt.

If that question could be answered, it might become apparent as to how I can uncheck Read-only in the folder's properties as this apparently is causing the app to fail.

Thanks.
My System SpecsSystem Spec
.

25 Aug 2016   #4
Brink

64-bit Windows 10 Pro
 
 

Hello Bontrager, and welcome to Seven Forums.

Just to verify. If the Read-only box is this , then it's not actually checked.

Read-only File and Folder Attribute
My System SpecsSystem Spec
25 Aug 2016   #5
Bontrager

Windows 7 Enterprise 64 bit
 
 

Thanks. The checkbox actually has a checkmark.
My System SpecsSystem Spec
25 Aug 2016   #6
Brink

64-bit Windows 10 Pro
 
 

It won't hurt anything to run the command to remove the Read-only attribute to see if that may help.
My System SpecsSystem Spec
26 Aug 2016   #7
Bontrager

Windows 7 Enterprise 64 bit
 
 

I came upon the a Microsoft tech note that describes exactly the scenario I encountered (cannot uncheck the Read-only checkbox of a folder's properties). See the section under Steps to work around this problem at the following link: https://support.microsoft.com/en-us/kb/326549

I ran the following command as an Administrator with the syntax decribed in the tech note:

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

However, after running this command, a checkmark still appears next to Read-only in the the properties of the folder "Temporary ASP.NET Files".

If anyone has any ideas on this, please let me know. Thanks.
My System SpecsSystem Spec
26 Aug 2016   #8
Brink

64-bit Windows 10 Pro
 
 

The command you posted above has an error in it. There should be a space after attrib like below.

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

Does using the command below show the attrib to still be Read-only for the folder?

attrib "C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NETFiles"
My System SpecsSystem Spec
26 Aug 2016   #9
Bontrager

Windows 7 Enterprise 64 bit
 
 

Thanks for picking up the missing blank space.

Please note that the command you suggested doesn't recognize the directory.

c:\>attrib "C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NETFil
es"
File not found - C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.N
ETFiles


Adding the /d switch (to recognize the directory) indicates the /s switch is also required.
c:\>attrib /d "C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET
Files"
The /D switch is only valid with the /S switch.


'File not found' after adding /s switch.
c:\>attrib /d /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.N
ETFiles


Here's the command to remove the Read-only attribute (with the missing blank space added) per the MS tech note. Still get 'File not found.'
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.N
ETFiles


The result of the above command is that the Read-only checkmark is not removed from the Temporary ASP.NETFiles folder. The following command was run to reverse the above command (per the MS tech note.)

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.N
ETFiles

c:\>

The 'File not found' message might refer to the fact that the Temporary ASP.NETFiles folder does not contain any files. Regardless, I would expect that the Read-only checkmark would be removed from the folder by running the command as described in the MS tech note.

Any other ideas, please let me know. Thanks.
My System SpecsSystem Spec
26 Aug 2016   #10
Brink

64-bit Windows 10 Pro
 
 

That error indicates that it can't find the folder. Are you sure you have the correct path?
My System SpecsSystem Spec
Reply

 Read-only Attribute for a Windows folder




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Read-only Attribute Keeps Reappearing
Hi Folks, This is driving me mad... Tried to edit some songs in iTunes 12 and couldn't. Found that the 'My Music' folder (and also the iTunes and iTunes Media folders) have a 'Read Only' attribute which, even when cleared, re-sets itself immediately. Have even gone into the folder...
Music, Pictures & Video
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?
System Security
Remove read only attribute of folder.
I have an executable file, which is a windows service. Now I cannot start it from service control management panel. I am the administrator. I guess the readonly attribute effects it. I found that the folder is readonly. I unclick it and apply it and click OK button. However next time when I look...
General Discussion
Can't remove 'read-only' attribute from a folder
Things I have tried: 1) Enabled hidden administrator logon and logged onto it. 2) Edited user permission for entire drive and set to 'full control' 3) verified the folder is not locked/in-use even deleted it and then restored Still has the stupid 'read only' box checked when you hit...
General Discussion
How do I unset the Program folder read-only attribute?
Hello everybody, I have a problem with the C:\Programs Files and C:\Program Files (x86) folders under W7 RC 64bit: these folder have the read-only attribute set on and I can't unset it. Whenever I tried to unset this attribuite even if W7 seems to comply the folders actually remain in the...
General Discussion
Read-only File and Folder Attribute
How to Set and Unset Read-only Attribute of a File or Folder in Windows This tutorial will show you how to set or unset files or all files in folders to be read-only or not in Vista, Windows 7, Windows 8, and Windows 10. In Windows, folders cannot be set as read-only. Only the files in...
Tutorials


Our Sites

Site Links

About Us

Find 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 01:36.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App