Simple question really...
How can I copy a ReadOnly file?
When running a debug build of my very simple Windows Forms app, I'm getting the UnauthoriazedAccess Exception when trying to copy a read-only file from one directory to another:
FileInfo newFile = new FileInfo(fileName);
File.Copy(newFile.FullName, Path.Combine(destinationDirPath, newFile.Name), true);
What do I need to do to get around it? I'm thinking that there's some kind of security or application permission that I need to set for this project...