This project is read-only.

Jan 27, 2011 at 5:46 PM


I have downloaded the file ‘’ and extracted it and now have the folders


Now What!
All I want to do is extract all files from ‘’ to a folder, I have a button and placed the code following code but get a line under ZipFile.

So what do I have to do?
Where do I put things?

Dim ZipToUnpack As String = "" 
  Dim TargetDir As String = "C1P3SML" 
  Console.WriteLine("Extracting file {0} to {1}", ZipToUnpack, TargetDir) 
  Using zip1 As ZipFile = ZipFile.Read(ZipToUnpack) 
      AddHandler zip1.ExtractProgress, AddressOf MyExtractProgress 
      Dim e As ZipEntry 
      ' here, we extract every entry, but we could extract   
      ' based on entry name, size, date, etc. 
      For Each e In zip1 
          e.Extract(TargetDir, ExtractExistingFileAction.OverwriteSilently) 
  End Using 


Jan 31, 2011 at 1:44 PM

Check the documentation - open the .chm file and read it.

The short story is, you need to add a reference to the DotNetZip DLL to your project. I'm assuming you're using Visual Studio.  Add a reference to the library, and add the statement "Imports Ionic.Zip" at the top of the file.

Then the red squiggly line under "ZipFile" will go away, and your project will build properly.

I'm sure you will have more questions later. Read the documentation, it's helpful in explaining things.