title: Copy file difference between 2 folders and a third folder using Windows commands
body: <p>I have seen the topic of copying the difference of two folders to a third folder on this site and others yet I cannot find a single suggested solution that works for me. I'd like to use Robocopy, Xcopy or powershell. </p>
  
  <p>The folders will be called <strong>current</strong>, <strong>Changed</strong>, and <strong>moved</strong>.
  <strong>Current</strong> is the current production folder. It contains a variety of files but the files I want to copy and move are all .txt files.</p>
  
  <p>I already figured out how to use Robocopy using the /XO switch to copy the files with a difference or which are new from <strong>current</strong> to <strong>changed</strong>.  I want to overwrite the files from current in changed on a daily basis as step 1.</p>
  
  <p>However for step 2 I need to then copy only what was newly copied to <strong>changed</strong> to the third folder <strong>moved</strong> which will ultimately be zipped and FTP'd to a different server. The <strong>moved</strong> folder should contain only the delta files. I'm aware of a /MOV command but I couldn't figure out how to use it for my purposes. Any suggestions how to script this?</p>