How can I programatically remove the readonly attribute from a directory in C#?
var di = new DirectoryInfo("SomeFolder"); di.Attributes &= ~FileAttributes.ReadOnly;