Let say, a file has the following attributes: ReadOnly, Hidden, Archived, System. How can I remove only one Attribute? (for example ReadOnly)
ReadOnly, Hidden, Archived, System
Use this:
private static FileAttributes RemoveAttribute(FileAttributes attributes, FileAttributes attributesToRemove)
Read detail here in MSDN: http://msdn.microsoft.com/en-us/library/system.io.file.setattributes.aspx