Heres my code
System.IO.File.Copy("C:\Program Files\My Program\Temp\temp.txt", "C:\temp2.txt")
System.IO.File.Delete("C:\Program Files\My Program\Temp\temp2.txt")
I get an exception System.UnauthorizedAccessException "Access to the patch "C:\Program Files\My Program\Temp\temp2.txt" is denied."
Are there other classes or methods I could use to workaround this.
System.IO.File.Copy("C:\Program Files\My Program\Temp\temp.txt", "C:\temp2.txt")
System.IO.File.Delete("C:\Program Files\My Program\Temp\temp2.txt")
I get an exception System.UnauthorizedAccessException "Access to the patch "C:\Program Files\My Program\Temp\temp2.txt" is denied."
Are there other classes or methods I could use to workaround this.