title: Can i use XCOPY to copy only files that have changed size?
body: <p>I'm trying to use XCOPY to backup .PST files from Outlook and only backup files that have changed since last use.</p>
  
  <p>Normally this would be easy using the /d switch to save only files with a newer modified date but Outlook changes the date when it's opened regardless of whether the contents have changed.</p>
  
  <p>Is it possible to use an IF statement to compare file sizes and only backup if the file size is different (not necessarily larger or smaller)?</p>
  
  <p>Currently using:</p>
  
  <pre><code>XCOPY /m /f /i /y c:\*.pst \\NetworkLocation\%USERNAME%\BACKUP
  </code></pre>
  
  <p>Thanks</p>