title: C# - If filesize is >0Kb do this, else do that
body: <p>I am currently trying to check a files size, if it is 0Kb do xxxx, else do yyyyyyyyyy</p>
  
  <p>I currently only have a batch alternative:</p>
  
  <pre><code>FOR /F "usebackq" %%A IN ('%file%') DO set size=%%~zA
  
  if %size% LSS %maxbytesize% (
      TIMEOUT /T 1 
  ) ELSE (
      start "" "alert.bat"
  )
  </code></pre>
  
  <p>Could someone demonstrate this in C# please</p>