title: How to create target directory structure for copy files in classic ASP?
body: <p>I want to copy a file to target directory.
  It is simple with copyFile command of File system object.
  But I need some enhancement like,</p>
  
  <p>If target directory is not exist then it'll create target directory and then copy a file.</p>
  
  <p>Can you help me achieve it?</p>
  
  <p>Let me know if there are other ways to do same.</p>
  
  <p>Thanks.</p>
  
  <p>Solution:</p>
  
  <pre><code>'Create folder if it doesn't exist
  If not oFSO.FolderExists(sDestinationFolder) then
      oFSO.CreateFolder(sDestinationFolder)
  End If
  </code></pre>