//若文件为只读状态,将其更改为非只读状态
if (System.IO.File.GetAttributes(pOldFilePath).ToString().IndexOf("ReadOnly") != -1)
{
File.SetAttributes(pOldFilePath, FileAttributes.Normal);
}
if (System.IO.File.GetAttributes(pOldFilePath).ToString().IndexOf("ReadOnly") != -1)
{
File.SetAttributes(pOldFilePath, FileAttributes.Normal);
}