title: windows batch: how to check if a text file is blank (the file has an empty line so size is non zero)
body: <p>Problem with the file is that it sometimes contains a blank line and so the size is not zero. I tried this but as it has an empty line so it returns 1 instead of 0. Any suggestions how to tackle it?  </p>
  
  <pre><code>set /a varTestPoints=0
  for /f %%a in ('type "file.txt"^|find "" /v /c') do set /a varTestPoints=%%a
  </code></pre>