[
  {
    "Id": "475149",
    "ThreadId": "222106",
    "Html": "<p>Hi,</p>\r\n<p>when i create the zipfile from my asp.net application, i use</p>\r\n<div style=\"color:black;background-color:white\">\r\n<pre>zip.AddFile(Server.MapPath((<span style=\"color:#a31515\">&quot;\\\\Data\\\\Files\\\\Division\\\\SubDivision\\\\&quot;</span> + fn)); \r\n</pre>\r\n</div>\r\n<p>&nbsp;</p>\r\n<div style=\"color:black;background-color:white\">\r\n<pre><br>and then i do the save,<pre><div style=\"color:black;background-color:white\"><pre>zip.Save(Server.MapPath(<span style=\"color:#a31515\">&quot;\\\\Data\\\\Files\\\\Division\\\\SubDivision\\\\&quot;</span> + fn + <span style=\"color:#a31515\">&quot;.zip&quot;</span>).ToString());\r\n</pre>\r\n</div>\r\n</pre>\r\nthe file gets added to the zip, the zip saves fine and i m able to download it. the issue i am facing is, <br>the file with filename &quot;fn&quot; is stored in the \\Data\\Files\\Division\\SubDivision\\fn.docx folder. now in the zip file,<br>i want only the fn.docx and the whole sub diretory structure from my root. <br><br>when the zip is created, the folder structure inside the zip file is Data\\Files\\Division\\SubDivision\\fn.docx. i want it to be only fn.docx.<br><br>can anybody help me pls?<br><br>thanks</pre>\r\n</div>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2010-08-01T04:36:08.2-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "478472",
    "ThreadId": "222106",
    "Html": "If you don't want the directory structure inside the zip, then add the zip files using zip.AddFile(sourceFilePath, &quot;\\\\&quot;); That way you get a zip file with the fn.docx in the root.",
    "PostedDate": "2010-08-10T01:38:23.457-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]