title: Issue with MoveFile method to overwrite file in Destination in vbscript?
body: <p>I have a vbscript that I have written to move files from a source directory to a destination directory. The way the script works at the moment is that I have a mapping file which is read in (maps id's to folder type). Each file being moved begins with the id and the destination will be based on what the id is mapped to. I read in the mapping file and build up the destination path for each file being moved. This all works as expected, the problem is when I try to move a file that already exists in the destination directory, the files are not moved from the source directory. Essentially I would like it to overwrite a file in the destination directory if it already exists.
  At the moment, my main command is this:</p>
  
  <pre><code>fso.MoveFile ObjFile.Path, archiveTo &amp; "\" &amp; yearValue &amp; "\" &amp; monthValue &amp; "\" &amp; ObjFile.Name
  </code></pre>
  
  <p>Is there a way to default this to always overwrite a file in the destionation directory if it already exists?</p>