[
  {
    "Id": "255684",
    "ThreadId": "74706",
    "Html": "<p>I have a zip file that contains a file called 'MyDatabase.mdb'.&nbsp; The path stored in the zip file to this file is &quot;users\\public\\myapp\\&quot;.&nbsp; I am trying to extract this file using ExtractSelectedEntries to restore the file to its original location.&nbsp; I can extract it using ExtractAll(&quot;MyDatabase.mdb&quot;, &quot;c:\\users\\public\\myapp\\&quot;) which works fine.&nbsp; However, I need the functionality of ExtractSelectedEntries so my simple test of that feature will become more complex later if I can get the simple test to work.&nbsp; The problem is that I cannot get this method to extract the file.&nbsp; Here is what I have tried:</p>\r\n<p>&nbsp;<span style=\"color:#0000ff;font-size:x-small\"><span style=\"color:#0000ff;font-size:x-small\">Using</span></span><span style=\"font-size:x-small\"> zip </span><span style=\"color:#0000ff;font-size:x-small\"><span style=\"color:#0000ff;font-size:x-small\">As</span></span><span style=\"font-size:x-small\"> Ionic.Zip.ZipFile = Ionic.Zip.ZipFile.Read(zipFileName</span></p>\r\n<p style=\"padding-left:30px\"><span style=\"font-size:x-small\">zip.ExtractSelectedEntries(</span><span style=\"color:#a31515;font-size:x-small\"><span style=\"color:#a31515;font-size:x-small\">&quot;name = 'MyDatabase.mdb'&quot;</span></span><span style=\"font-size:x-small\">, &quot;users\\public\\myapp\\&quot;, &quot;c:\\&quot;, ExtractExistingFileAction.OverwriteSilently)</span></p>\r\n<p><span style=\"color:#0000ff;font-size:x-small\"><span style=\"color:#0000ff;font-size:x-small\">End </span></span><span style=\"color:#0000ff;font-size:x-small\"><span style=\"color:#0000ff;font-size:x-small\">Using</span></span></p>\r\n<p>&nbsp;As I mentioned, this does not work, the zips internal path to the file &quot;users\\public\\myapp\\&quot; was cut/paste directly from Winzip.&nbsp;&nbsp;I tried the following variations:</p>\r\n<p style=\"padding-left:30px\">zip.ExtractSelectedEntries(<span style=\"color:#a31515;font-size:x-small\"><span style=\"color:#a31515;font-size:x-small\">&quot;name = 'MyDatabase.mdb'&quot;</span></span><span style=\"font-size:x-small\">, &quot;\\users\\public\\myapp\\&quot;, &quot;c:\\&quot;, ExtractExistingFileAction.OverwriteSilently)</span></p>\r\n<p><span style=\"font-size:x-small\"><span style=\"font-size:x-small\">\r\n<p style=\"padding-left:30px\">zip.ExtractSelectedEntries(</p>\r\n<p>The last variation worked.&nbsp;Which means that the internal zip path specified in the second parameter&nbsp;cannot end with a backslash.&nbsp; This is a bit inconsistent with other directory path specifications which do allow the path to end with a backslash.&nbsp;</p>\r\n<p>Andy</p>\r\n<p>&nbsp;</p>\r\n</span><span style=\"color:#a31515;font-size:x-small\"><span style=\"color:#a31515;font-size:x-small\">&quot;name = 'MyDatabase.mdb'&quot;</span></span><span style=\"font-size:x-small\">, &quot;users\\public\\myapp&quot;, &quot;c:\\&quot;, ExtractExistingFileAction.OverwriteSilently)</span></span></p>",
    "PostedDate": "2009-11-10T13:16:28.7-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "255906",
    "ThreadId": "74706",
    "Html": "This discussion has been copied to a work item. Click <a href=\"http://dotnetzip.codeplex.com/WorkItem/View.aspx?WorkItemId=9174\">here</a> to go to the work item and continue the discussion.",
    "PostedDate": "2009-11-11T02:38:43.947-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "255918",
    "ThreadId": "74706",
    "Html": "<p>Thanks Andy,</p>\r\n<p>that is fixed in v1.8.4.28 .</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2009-11-11T03:34:26.887-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]