title: check number of arguments on batch file
body: <p>I'm trying to do simple checking on the batch file. <code>argCount</code> contains correct number but I have a trouble in comparing variable and number. I want to show help if number of arguments is not equal to 3 and go to the end of the file.<br>
  I tried:<br>
  <code>if not %argCount% == 3</code><br>
  <code>if not %argCount%=='3'</code><br>
  <code>if not '%argCount%'=='3'</code><br>
  <code>if %argCount% NEQ 3</code><br>
  but none of these options works as expected... Most of options that I tried always show me help message regardless of the number of arguments, some of the options show me help message without first 3 lines if I pass 3 arguments to the script (extremely weird).</p>
  
  <pre><code>@echo off
  
  set argCount=0
  for %%x in (%*) do (
     set /A argCount+=1
  )
  if not %argCount% == 3 (
      echo This script requires the next parameters:
      echo - absolute path to file
      echo - filter (explanation)
      echo - true or false (explanation)
      echo Examples:
      echo start.bat full\path\to\the\file.ext test true
      echo start.bat full\path\to\the\file.ext nof false
      goto end
  )
  
  REM some another code
  
  :end
  </code></pre>