[
  {
    "Id": "571964",
    "ThreadId": "247531",
    "Html": "\r\n<p>Hi I'm looking for a way to rename a file upon extraction from a zip archive. I don't want to rename this file inside the zip.</p>\r\n",
    "PostedDate": "2011-02-24T22:56:41.397-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "572839",
    "ThreadId": "247531",
    "Html": "<p>You have two options: Rename before you extract, or rename after you extract.</p>\n<p>Renaming before extraction is a matter of setting the FileName property on the ZipEntry.&nbsp;&nbsp; e.FileName = \"new name.xxx\" followed by \"e.Extract()\" will extract the entry to the given name.</p>\n<p>Renaming after extraction involves using the System.IO.File class and renaming the file that way.&nbsp;</p>\n<p>If you modify the FileName entry in the ZipEntry, and don't save the ZipFile - in other words if you don't call ZipFile.Save() , then the change you made is not made permanent in the zip file in the filesystem.&nbsp; &nbsp;The change is made only to the in-memory instance of the ZipFile object, unless/until you call ZipFile.Save().</p>\n<p>&nbsp;</p>",
    "PostedDate": "2011-02-27T10:02:33.893-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "575417",
    "ThreadId": "247531",
    "Html": "<p>Thanks! I've used a first option. And it works great.</p>",
    "PostedDate": "2011-03-03T23:56:35.87-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]