Quote Originally Posted by Shuja Ali View Post
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