[
  {
    "Id": "521370",
    "ThreadId": "234539",
    "Html": "\r\n<p>Hi,</p>\r\n<p>A newbie question. I have generated my data in temp files but want to store them properly in the zip file.</p>\r\n<p>How do I give the new name while adding the files to the zip file?&nbsp;</p>\r\n<p>For example: I have three tmp files.</p>\r\n<p>lkijo343n.tmp</p>\r\n<p>klsjdfklsjdlk.tmp</p>\r\n<p>3kjljdlfsd.tmp</p>\r\n<p>I want to store the above as</p>\r\n<p>abc1.csv</p>\r\n<p>abc2.csv</p>\r\n<p>abc3.csv</p>\r\n<p>Thanks.</p>\r\n",
    "PostedDate": "2010-11-12T18:59:23.02-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "521380",
    "ThreadId": "234539",
    "Html": "\r\n<p>I think I just need to set the name after adding the entry...I will try that...</p>\r\n",
    "PostedDate": "2010-11-12T20:41:08.787-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "521403",
    "ThreadId": "234539",
    "Html": "\r\n<p>yes, that should work, just fine.&nbsp; Let me know if it does not work as you expect.</p>\r\n",
    "PostedDate": "2010-11-12T22:31:50.37-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "521801",
    "ThreadId": "234539",
    "Html": "\r\n<p>Other point of view (and problem with renaming ;-) ) . I've tried to use rename script for existing zip file based on sequence in VB :</p>\r\n<p><span style=\"color:#0000ff\">Using zip As ZipFile = ZipFile.Read( ZIPPath, System.Text.Encoding.GetEncoding(852))</span><br>\r\n<span style=\"color:#0000ff\">...</span></p>\r\n<p><span style=\"color:#0000ff\">For Each entry In Zip</span></p>\r\n<p><span style=\"color:#0000ff\">&nbsp;&nbsp; Index = Index &#43;1</span></p>\r\n<p><span style=\"color:#0000ff\">&nbsp;&nbsp; entry.FileName = Index.ToString &amp; Name</span></p>\r\n<p><span style=\"color:#0000ff\">Next</span><br>\r\n<span style=\"color:#0000ff\">&nbsp;... </span><br>\r\n<span style=\"color:#0000ff\">Zip.Save()</span></p>\r\n<p><span style=\"color:#0000ff\">End Using</span></p>\r\n<p>But exception <span style=\"color:#ff0000\">&quot;<em>InvalidOperationException: Collection was modified; enumeration operation may not execute</em>.&quot;</span> is resulted.</p>\r\n<p>Could somebody prompt me?</p>\r\n<p>Thanks,</p>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;</p>\r\n",
    "PostedDate": "2010-11-14T11:42:44.23-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "525435",
    "ThreadId": "234539",
    "Html": "\r\n<p>Instead of enumerating, loop:</p>\r\n<p>&nbsp;</p>\r\n<p>For Index = 0 To Zip.Entries.Count</p>\r\n<p>&nbsp; Zip(Index).FileName = Index.ToString &amp; Name</p>\r\n<p>Next</p>\r\n",
    "PostedDate": "2010-11-22T11:05:17.853-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "527617",
    "ThreadId": "234539",
    "Html": "\r\n<p>thanks, halcyon1234, you are absolutely right,</p>\r\n<p>in this case enumerating is a stupid way and <strong>For</strong> works correctly (For Index = 0 To (Zip.Entries.Count\r\n<strong>- 1</strong>)&nbsp; ;-)</p>\r\n<p>&nbsp;</p>\r\n",
    "PostedDate": "2010-11-27T01:26:12.423-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]