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");
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");