and the PathCombine class
string fullPath = PathCombine(pathRoot, relativePath); if (File.Exists(fullPath)) { FileAttributes fas = File.GetAttributes(fullPath); if (fas.Contains(FileAttributes.ReadOnly)) File.SetAttributes(fullPath, FileAttributes.Normal); File.Delete(fullPath); }
No comments:
Post a Comment