Microsoft Windows Vista Community Forums - Vistaheads
Recommended Download - Clean, repair and optimize your system



Welcome to the Microsoft Windows Vista Community Forums - Vistaheads, YOUR Largest Resource for Windows Vista related information.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so , join our community today!

If you have any problems with the registration process or your account login, please contact us.

Read-Only Folders

microsoft.public.windows.vista.general




Recommended Fix - Fix Vista Errors and Optimize Performance

Click On Your Flag for Translation
Simplified Chinese French Spanish Italian Portugeuse Japanese German Dutch
Driver Scanner 2009 - Free Scan Now
Reply
  #1 (permalink)  
Old 07-19-2007
Jim
 

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:
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" <jim.munafo@ngc.com> wrote in message
news:151b5$469e8a1a$d8447f26$25689@FUSE.NET...
>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
>
>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-19-2007
Jimmy Brush
 

Posts: n/a
Re: Read-Only Folders
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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

vB 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
Read Only - Folders Problem! danonone microsoft.public.windows.vista.security 8 06-12-2007 14:56
All folders are read only Steve microsoft.public.windows.vista.general 2 06-04-2007 03:24
Putting read mail into folders from sort by =?Utf-8?B?V2lsbGlhbQ==?= microsoft.public.windows.vista.mail 1 03-28-2007 06:51
Hide Folders with READ Messages =?Utf-8?B?SmFjaw==?= microsoft.public.windows.vista.mail 5 03-28-2007 03:58
Why can't I change folders I created from Read Only =?Utf-8?B?TWFyayBCLg==?= microsoft.public.windows.vista.general 6 03-01-2007 15:43




All times are GMT +1. The time now is 20:08.




Driver Scanner - Free Scan Now

Vistaheads.com is part of the Heads Network. See also XPHeads.com and Win7Heads.com.


Funny Commercials to make you laugh :-)

Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

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 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119