C#删除只读文件

File.SetAttributes(fileRealPath, FileAttributes.Normal);//先将文件设置成普通属性
//...你的删除文件的代码

  

原文地址:https://www.cnblogs.com/tommy-huang/p/4819117.html