Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > Read-Only Folders

Reply
Thread Tools Display Modes

Read-Only Folders

 
 
Jim
Guest
Posts: n/a

 
      07-19-2007
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:
http://www.followsteph.com/2007/06/1...sta-read-only/
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" <> wrote in message
news:151b5$469e8a1a$d8447f26$...
>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
>
>


 
Reply With Quote
 
 
 
 
Jimmy Brush
Guest
Posts: n/a

 
      07-19-2007
Jim wrote:
> 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
>


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
 
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Folders - read-only Michelle Windows Vista File Management 13 02-04-2008 10:43 PM
Folders - read-only Michelle Windows Vista Performance 12 02-01-2008 06:59 AM
Folders - read-only Michelle Windows Vista Security 12 02-01-2008 06:59 AM
Folders/files read only/can't create new folder in read only folde gshillitani Windows Vista Administration 9 09-25-2007 12:50 PM
All folders are read only Steve Windows Vista General Discussion 2 06-04-2007 02:24 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59