title: Why won't my script remove files from folder larger than 1 mb?
body: <p>I am writing a batch file to remove files larger than 1 MB  from a folder located on my desktop. But when running the script, it removes random items and not the ones over 1mb. Is my script wrote improperly?</p>
  
  <pre><code>for /R %%X in (C:\Users\TSwanson\Desktop\WorkSite) DO (
      IF %%~zX GTR 1024KB (ECHO DELETING "%%X"
      DEL /X "%%X"))
  pause &gt;Nul
  </code></pre>