Technology Questions

Go Back   Technology Questions > Software Questions > Operating System Questions > Vista Community > Windows Vista

Windows Vista Discuss the different versions of Windows Vista, Fuji, or Vienna

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 07-19-2007, 08:30 AM
Jim
Newsgroup Contributor
 
Posts: n/a
Read-Only Folders

I originally posted this in the .NET newsgroup, but now it seems as though
it is more appropriate here. I have a folder that is read-only, and I can't
change it so that it is not read-only. I have tried unchecking the
read-only box, and I have tried giving myself full control over the
directory (even though I am an administrator on the Vista box). Every time
I try to do it, the directory stays as read-only.

Any solutions?

Thanks.
-- Jim


----------------------------------------------------------------------
Well, after doing more reading, it doesn't look like this is just me. This
guy's site:
[url]http://www.followsteph.com/2007/06/17/windows-vista-read-only/[/url]
has several references to threads in which people cannot change the
read-only property of a folder. My Google skills are failing me to find the
answer too. Does anybody know why I can't change the read-only property of
a folder on my Vista machine (it's a temporary folder I make in my Debug
directory during debugging)? More importantly, does anybody know how I can
fix this via normal administration and via code (some example code would be
cool too)?

My installation of Vista is just the normal RTM Vista CD from my MSDN
subscription. I setup my account as an administrator, and that's what I'm
logging in with.

Thanks again,
-- Jim



"Jim" <jim.munafo@ngc.com> wrote in message
news:151b5$469e8a1a$d8447f26$25689@FUSE.NET...[color=blue]
>I have the following piece of code:
>
> Directory.CreateDirectory(myDir);
> DirectoryInfo lDir = new DirectoryInfo(myDir);
> lDir.Attributes = FileAttributes.Normal;
>
> When this code runs, my directory is created fine, but my directory is
> always read only. At first I thought it was something with using
> DirectoryInfo. However, I also ran the following line of code:
>
> Directory.CreateDirectory(myDir);
>
> Immediately after running this line of code, my directory was created, and
> then I went and manually tried to change the attributes of the directory
> so that it was not read only. Even after I tried to set it manually, it
> would always be read only. I never received back an error after I pushed
> OK on the directory properties after unchecking read only, but every time
> I go back to the properties of the folder it is always read only?
>
> This is running on Windows Vista. Any ideas why?
>
> Thanks,
> -- Jim
>
>[/color]

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 07-19-2007, 08:30 AM
  #2 (permalink)  
Old 07-19-2007, 08:40 AM
Jimmy Brush
Newsgroup Contributor
 
Posts: n/a
Re: Read-Only Folders

Jim wrote:[color=blue]
> I originally posted this in the .NET newsgroup, but now it seems as though
> it is more appropriate here. I have a folder that is read-only, and I can't
> change it so that it is not read-only. I have tried unchecking the
> read-only box, and I have tried giving myself full control over the
> directory (even though I am an administrator on the Vista box). Every time
> I try to do it, the directory stays as read-only.
>
> Any solutions?
>
> Thanks.
> -- Jim
>[/color]

Hello,

The read-only checkbox is irrelevant for folders. Notice it is filled in
with a square as opposed to a check, which indicates that it is NOT
checked but rather in an 'indeterminate' state.

If you are having folder access issues, it is because of the security
permissions on the folder.

The checkbox is there only so that you can easily set or clear the
read-only attribute on the files inside of that folder.

- JB
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Off
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
All folders are read only Steve Windows Vista 2 06-03-2007 07:30 PM
All folders Read Only.. Carlos Martinez Windows XP 16 05-30-2007 06:40 PM
Read only Folders !!!!!!!!Urgent!!!!!!!!!!!!! Lisa Windows XP 12 05-23-2007 05:50 AM
Removing read-only on folders cld1015 Windows XP 12 02-27-2007 03:00 PM
All my .Net folders say Read-Only tshad Windows XP 1 01-23-2007 12:00 PM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 07:06 AM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0