[
  {
    "Id": "556381",
    "ThreadId": "243564",
    "Html": "\r\n<p>Hi,<br>\r\n<br>\r\nI have downloaded the file &lsquo;DotNetZipLib-DevKit-v1.9.zip&rsquo; and extracted it and now have the folders<br>\r\n<br>\r\nDotNetZip-v1.9<br>\r\nDotNetZip-v1.9-CompactFramework<br>\r\nDotNetZip-v1.9-Reduced<br>\r\nVS2008-IntegratedHelp<br>\r\nZlib-v1.9<br>\r\nZlib-v1.9-CompactFramework<br>\r\n<br>\r\nNow What!<br>\r\nAll I want to do is extract all files from &lsquo;MyZipFile.zip&rsquo; to a folder, I have a button and placed the code following code but get a line under ZipFile.<br>\r\n<br>\r\nSo what do I have to do?<br>\r\nWhere do I put things?<br>\r\n<br>\r\nDim ZipToUnpack As String = &quot;C1P3SML.zip&quot;&nbsp; <br>\r\n&nbsp; Dim TargetDir As String = &quot;C1P3SML&quot;&nbsp; <br>\r\n&nbsp; Console.WriteLine(&quot;Extracting file {0} to {1}&quot;, ZipToUnpack, TargetDir)&nbsp;\r\n<br>\r\n&nbsp; Using zip1 As ZipFile = ZipFile.Read(ZipToUnpack)&nbsp; <br>\r\n&nbsp; &nbsp; &nbsp; AddHandler zip1.ExtractProgress, AddressOf MyExtractProgress&nbsp;\r\n<br>\r\n&nbsp; &nbsp; &nbsp; Dim e As ZipEntry&nbsp; <br>\r\n&nbsp; &nbsp; &nbsp; ' here, we extract every entry, but we could extract&nbsp; &nbsp;\r\n<br>\r\n&nbsp; &nbsp; &nbsp; ' based on entry name, size, date, etc.&nbsp; <br>\r\n&nbsp; &nbsp; &nbsp; For Each e In zip1&nbsp; <br>\r\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; e.Extract(TargetDir, ExtractExistingFileAction.OverwriteSilently)&nbsp;\r\n<br>\r\n&nbsp; &nbsp; &nbsp; Next&nbsp; <br>\r\n&nbsp; End Using&nbsp; <br>\r\n<br>\r\n<br>\r\nRichard</p>\r\n",
    "PostedDate": "2011-01-27T09:46:44.21-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "558061",
    "ThreadId": "243564",
    "Html": "\r\n<p>Check the documentation - open the .chm file and read it.</p>\r\n<p>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.&nbsp; Add a reference to the library, and add the statement &quot;Imports Ionic.Zip&quot; at the top of the file.</p>\r\n<p>Then the red squiggly line under &quot;ZipFile&quot; will go away, and your project will build properly.</p>\r\n<p>I'm sure you will have more questions later. Read the documentation, it's helpful in explaining things.</p>\r\n",
    "PostedDate": "2011-01-31T05:44:41.093-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]