[
  {
    "Id": "1122750",
    "ThreadId": "468422",
    "Html": "I am not sure if its a gap in my understanding. I have to zip a folder which sits on a server in the same network. Suppose I have a folder WebSite on the D drive of ABC machine on XYZ domain (same network as my machine). I use the following code to zip it<br />\n<pre><code>            using (ZipFile myZip = new ZipFile())\n            {\n                myZip.AddSelectedFiles(&quot;*.*&quot;, @&quot;\\\\ABC.XYZ.com\\d$\\WebSite\\&quot;, true);\n\n                myZip.Save(@&quot;\\\\ABC.XYZ.com\\d$\\Test.zip&quot;);\n            }</code></pre>\n\nUsing this code I get an archive in the D drive of the server ABC but, the structure of the zip would look like this.<br />\n<blockquote>\nTest.zip -&gt; ABC.XYZ.com -&gt; d$ -&gt; Website<br />\n</blockquote>\nIs there some alternative way to get the Zip file like Test.zip -&gt; Website, while on a network path.<br />\n",
    "PostedDate": "2013-11-12T23:14:44.737-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "1123768",
    "ThreadId": "468422",
    "Html": "I posted the same question in SO.. I got an answer from there. I just had to add the entire directory to the zip file<br />\n<pre><code>using (ZipFile myZip = new ZipFile())\n{\n    myZip.AddDirectory(@&quot;\\\\ABC.XYZ.com\\d$\\WebSite\\&quot;, &quot;WebSite&quot;);\n    myZip.Save(@&quot;\\\\ABC.XYZ.com\\d$\\Test.zip&quot;);\n}</code></pre>\n\nThanks a bunch <a href=\"http://stackoverflow.com/users/2819245/elgonzo\" rel=\"nofollow\">elgonzo</a><br />\n",
    "PostedDate": "2013-11-14T21:41:13.247-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]