[
  {
    "Id": "769466",
    "ThreadId": "317947",
    "Html": "\r\n<p>Hi all,</p>\r\n<p>i am using DotNetZip Library to unzip my zipped files,here is my code</p>\r\n<pre><span><pre>using (ZipFile zip = ZipFile.Read(copyTo))\r\n                {\r\n                    foreach (ZipEntry ttt in zip)\r\n                    {\r\n                        ttt.Extract(filePath3);\r\n                    }\r\n                }</pre>\r\n</span>the issue is, it extract like this<br>folder/folder/files...<br>i do not need like  this..i want to be like this <br>folder/files...<br>like we can write click on any zip file and  click on extract here.?<span><br>how it could be</span></pre>\r\n",
    "PostedDate": "2012-02-16T04:40:44.397-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "804381",
    "ThreadId": "317947",
    "Html": "<p>I think you are specifying wrong base directory in ttt.Extract(filePath3).This file path should be \"folder\" not folder/folder.</p>\r\n<p>Example:</p>\r\n<p>Lets Suppose you zip file resides inside C:\\Test and filename is MyZipFile.zip.</p>\r\n<p>&nbsp;using (ZipFile zip = ZipFile.Read(@\"C:\\Test\\MyZipFile.zip\"))<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; foreach (ZipEntry zipEntry in zip)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; zipEntry.Extract(@\"C:\\Test\");<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</p>\r\n<p>&nbsp;</p>\r\n<p>So base directory should be C:\\Test as Extract here will extract into the same folder.</p>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;</p>\r\n<pre><span>\r\n</span></pre>\r\n&nbsp;",
    "PostedDate": "2012-03-02T05:07:21.01-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]