title: Batch: Compare File Sizes
body: <p>I have seen a few different ways to compare files, using COMP, FC and a few others, but what I need to do is a basic file size compare, and then do a local copy of the file if it is larger, to the network file.</p>
  
  <p>The files could be anything from 200kb and 5gb.  So I am really only interested in the file size and not content.</p>
  
  <p>I would prefer a basic Dos script to run through a login script.</p>
  
  <pre><code>Check local file A
  Check remote file B
  If file A is bigger than file B
    Copy B to A
  </code></pre>