title: Windows BAT : test if a specific file is empty
body: <p>I would like to check if a specific file is empty in a windows .bat file. Here is my non working script :</p>
  
  <pre><code>set dir="C:\test"
  set file="%dir%\fff.txt"
  
  cd %dir%
  if %file%%~zi == 0 exit
  ftp -s:"%dir%\ftp.action"
  exit
  </code></pre>
  
  <p>Could you help me debug this please ?</p>