is there a way that i can remove the property \"read only\"?
i tried this:
var di = new DirectoryInfo(\"C:\\\\Work\"); di.Attributes &
Almost, try:
var di = new DirectoryInfo("C:\\Work"); foreach (var file in di.GetFiles("*", SearchOption.AllDirectories)) file.Attributes &= ~FileAttributes.ReadOnly;