08 June 2014

System.UnauthorizedAccessException: Access to the path denied in C#.net

Delete
File.SetAttributes(file, FileAttributes.Normal);
File.Delete(file);
Copy
File.Copy(file, dest, true);
File.SetAttributes(dest, FileAttributes.Normal);

No comments: