Extract zip file to C:\ProgramFiles\Folder c#

354 views Asked by At

I have written code to extract zip file to C:\Program Files. But its giving unauthorized access. Please help. Its the requirement. I cant change the folder also.

Code:

ZipFile.ExtractToDirectory(archiveFileName, "C:\\Program Files");
0

There are 0 answers