title: windows batch variable's size max
body: <p><br>
  I have a problem with my batch.
  the batch test the size of a directory and when it is too big it delete oldest file.</p>
  
  <p>the batch :</p>
  
  <pre><code>@echo off
  setlocal enabledelayedexpansion
  net use T: /d
  net use T: \\10.230.78.22\survcam
  
  set dossiure=T:\
  set "$max=204010946560"
  
  Echo traitement en cours....
  
  :loop
  for /f "tokens=3 delims= " %%a in ('dir %dossiure% ^| find /i "octets"') do (
    set $NbBytes=%%a
    goto:test
  )
  :test
  
  If %$NbBytes% GTR %$max% (
    for /f "delims=" %%a in ('dir %dossiure% /b/a-d/od') do (
         set LeVieux="%dossiure%%%a"
         Echo Destruction de : [!LeVieux!]
         del "!LeVieux!"
         goto:wait
     )
  )
  goto:fin
  :wait
  rem ping localhost -n 1
  goto:loop
  :fin
  net use T: /d
  echo fini
  </code></pre>
  
  <p>When $max = 85899345920<br>
  it is ok (80GiB)<br>
  but when $max = 204010946560<br>
  it erease many more than the indicated size (190GiB)<br>
  it is like it understand 19Gib limit
  someone know how to fix it?</p>