[
  {
    "Id": "525437",
    "ThreadId": "235624",
    "Html": "\r\n<p>I have a problem similar to &quot;how to rename&quot;, but slightly different.</p>\r\n<p>I have files saved with temporary names. 1.tif, 2.tif, 3.tif.</p>\r\n<p>The filenames are based of the ID in the database, and their directory is defined by the database, too.</p>\r\n<p>I want them to be their proper names. &quot;AFile.tif&quot;, &quot;LookAtMe.tif&quot;, &quot;WhatIsThis.tif&quot;, and such.</p>\r\n<p>However, I cannot add them in the structure I want.</p>\r\n<p>This case wipes out the directories:</p>\r\n<p>zip.AddFile(FileSystemDirectory &amp; dr(&quot;id&quot;) &amp; &quot;.tif&quot;, dr(&quot;directory&quot;)</p>\r\n<p>zip(zip.Entries.Count -1).FileName = dr(&quot;proper_file_name&quot;)</p>\r\n<p>How do I add a directory structure AND rename a file?</p>\r\n<p>&nbsp;</p>\r\n<p>Thank you.</p>\r\n",
    "PostedDate": "2010-11-22T11:08:41.69-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]