Hi guys i am trying to get the ZipArchive of System.IO.Compression working.
I have used:
and the code is:
I keep getting a:
UnauthorizedAccessException was unhandled:
Access to the path 'D:\Local' is denied.
I checked the Drive and Folder permissions and have full access, i then tried writing a text file to the folder and this worked with no problems, is there something i have missed with the CreateFromDirectory to create a zip file of all folders in the temp directory??
Thanks
Stu
I have used:
VB.NET:
Imports System.IO
Imports System.IO.Compression
and the code is:
VB.NET:
ZipFile.CreateFromDirectory("D:\Temp", "D:\Local", CompressionLevel.Optimal, False)
I keep getting a:
UnauthorizedAccessException was unhandled:
Access to the path 'D:\Local' is denied.
I checked the Drive and Folder permissions and have full access, i then tried writing a text file to the folder and this worked with no problems, is there something i have missed with the CreateFromDirectory to create a zip file of all folders in the temp directory??
Thanks
Stu