Possible Duplicate:
Allow access permission to write in Program Files of Windows 7
okay, here is my code :
System.IO.File.WriteAllBytes(path1, path2);
however, there is a problem.
user(windows 7 users dont have permission to copy file to c: by default)(…i mean for programs…)
therefore, program fails.
if user gives permission to copy file in c: program works fine. but you cant tell every user ” go to permission……….” so how can i make something to allow user that i copy my file to c://
You may add the
Application Manifest Filein your project by SelectionAdd New Item. Update therequestedExecutionLeveltoThis way user will be asked that the application needs to run in Administrative mode. Hope this help.