Hi guys I already added the DotNetZip library to my project, and reference the IonicZip .dll ,
everything seems to be alright with that. I'm dont know how to zip an entire folder. I'm getting a blue line error
on the line: "My.Computer.FileSystem.GetDirectories(pjDir )". ee
I was just experimenting,Code:Private Sub Zipbtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Zipbtn.Click If FBDialog.ShowDialog = DialogResult.OK Then pjDir = FBDialog.SelectedPath If pjDir <> "" Then Using zip As ZipFile = New ZipFile Dim dirCnt As String = My.Computer.FileSystem.GetDirectories(pjDir ) For Each file In pjDir zip.AddFile(file) Next zip.Save("MyZipFile.zip") End Using End If End If End Sub
I really dont know a way to zip a complete folder.
Any light shed will be greatfull,
Mike


Reply With Quote

