[
  {
    "Id": "481603",
    "ThreadId": "223880",
    "Html": "<p>Hi,</p>\r\n<p>Is it possible to unzip a file on a mapped drive?&nbsp; I've tried using UNC and the mapped drive letter in the &quot;Extract&quot; call, but nothing happens.</p>\r\n<p>Thanks in advance!</p>",
    "PostedDate": "2010-08-17T15:30:33.537-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "482681",
    "ThreadId": "223880",
    "Html": "Yes, it's quite possible.  Show your code and maybe we can help explain what is happening.  Often, c# developers forget to double the backslashes in strings and this can cause problems when trying to extract to full pathnames.\r\n",
    "PostedDate": "2010-08-20T03:49:25.64-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "482844",
    "ThreadId": "223880",
    "Html": "<p>Hi Cheeso,</p>\r\n<p>Thanks for the reply.&nbsp; My code is as follows:</p>\r\n<div style=\"color:black;background-color:white\">\r\n<pre>        <span style=\"color:blue\">public</span> <span style=\"color:blue\">static</span> <span style=\"color:blue\">void</span> unzipFiles()\r\n        {\r\n            <span style=\"color:green\">//Neither of these work</span>\r\n            <span style=\"color:green\">//String ZipToUnpack = &quot;\\\\&lt;ftpServer IP&gt;\\\\Inetpub\\\\ftproot\\\\web237.zip&quot;;</span>\r\n            <span style=\"color:green\">//String ZipToUnpack = &quot;Z:\\\\Inetpub\\\\ftproot\\\\web237.zip&quot;;</span>\r\n            String TargetDir = <span style=\"color:#a31515\">&quot;Z:\\\\Inetpub\\\\ftproot\\\\WEB237&quot;</span>;\r\n\r\n            <span style=\"color:blue\">using</span> (ZipFile zip2 = ZipFile.Read(ZipToUnpack))\r\n            {\r\n                <span style=\"color:blue\">foreach</span> (ZipEntry e <span style=\"color:blue\">in</span> zip2)\r\n                {\r\n                    e.Extract(TargetDir, ExtractExistingFileAction.OverwriteSilently);\r\n                }\r\n            }\r\n        }\r\n</pre>\r\n</div>\r\n<p>&nbsp;</p>\r\n<div id=\"_mcePaste\" style=\"width:1px;height:1px;overflow:hidden;top:0px;left:-10000px\">﻿</div>",
    "PostedDate": "2010-08-20T08:59:42.753-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "483173",
    "ThreadId": "223880",
    "Html": "What is contained in the zip file? Is it possible that the zip is empty?  A zip with No entries?  You need to be more specific about what you mean by &quot;nothing happens&quot;.\r\n ",
    "PostedDate": "2010-08-21T18:36:26.853-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]