title: How can I check the size of a file in a Windows batch script?
body: <p>I want to have a batch file which checks what the <code>filesize</code> is of a file.</p>
  
  <p>If it is bigger than <code>%somany% kbytes,</code> it should redirect with GOTO to somewhere else.</p>
  
  <p>Example:</p>
  
  <pre><code>[check for filesize]
  IF %file% [filesize thing Bigger than] GOTO No
  echo Great! Your filesize is smaller than %somany% kbytes.
  pause
  exit
  :no
  echo Um... You have a big filesize.
  pause
  exit
  </code></pre>