This project is read-only.

File Sharing Permissions Problem

Jan 22, 2009 at 4:51 PM
Hi all,

I am new to the dotnetzip library.  I have managed to create zip files - but winzip doesnt want to open them.  My code is as follows:


Public Sub ZipDirectory(ByVal DirectoryPath As String, ByVal ZipPath As String)






Using zip As ZipFile = New ZipFile(ZipPath)





End Using



Catch ex1 As Exception



"exception: {0}", ex1.ToString)



End Try



End Sub

And i end up with a zip file.  However if i use win zip to open it - it says "Could not open: filepath Probable cause file sharing or file permissions problem".  If i try with 7-zip i get access is denied.

I know i have access.  Any ideas?



Jan 23, 2009 at 9:47 AM
Ignore that.  Found the answer.  I needed to set the TempFileFolder.

If whoever made this library is watching.... thanks.  I have tried a few and this is by far the easiest.
Jan 23, 2009 at 7:40 PM
Glad you like it.

FYI, DotNetZip is donationware.
Proceeds go to charity.