I'm trying to do an auto-backup program that takes a folder and copies it into another folder. Pretty easy task :
File.Copy(Source, Destination);
Source is something like C:\Users\SomeUser\MyDocuments\SavedFiles
Destination is something like D:\BackUp
But when I run my program , I get "Error with access to the path C:\blabla.....
access is denied.
Is there any type of permission I must change to use the Copy
method ? I guess so.. I looked a little but I can't find where to change such a thing.
Any Idea ?
UPDATE