|
-
July 24th, 2009, 02:19 AM
#9
Re: How to set the read-only property of a directory and its content programmatically
 Originally Posted by Shuja Ali
Well that was just an illustration to show how to do it. You can always do something like this
Code:
DirInfo.Attributes |= FileAttributes.ReadOnly;
That would make sure that all other attributes are saved.
I tested it several times and it does work.
How bitwise OR operator will accomplish the given task, can you explain a bit
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|