[
  {
    "Id": "1489842",
    "ThreadId": "660131",
    "Html": "Hi,\r<br />\n<br />\nFind a below simple code which i am trying to execute.\r<br />\nusing (ZipFile zip = new ZipFile())\r<br />\n{\r<br />\nzip.AddFile(&quot;D:\\Packages\\Test.png&quot;);\r<br />\nzip.Save(&quot;D:\\Athar\\Myfile.zip&quot;);\r<br />\n}\r<br />\n<br />\nI am getting an error @ zip.Save function and the issue is as below\r<br />\n&quot;Access to the path 'D:\\Athar\\DotNetZip-e4gamapf.tmp' is denied.&quot;\r<br />\n<br />\nCan you please let me know what am i missing to get this working fine.\r<br />\n<br />\nThanks and Regards,\r<br />\nMohammed Athar.<br />\n",
    "PostedDate": "2016-12-14T04:55:38.957-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "1492385",
    "ThreadId": "660131",
    "Html": "Think you need to look at the .Save overrides.<br />\nThe way you have written your code will cause it to try to maintain the directory names also.<br />\n.Save can have a second parameter which is the path within the generated .zip file.<br />\nSet it to an empty string to add the files without a directory.<br />\nHope this helps.<br />\n",
    "PostedDate": "2017-02-08T08:55:28.117-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]