title: Gettin to use the reg query in batch
body: <p>I would like to know how I can use the reg query in batch to make if else decisions</p>
  
  <p>what I have sofar is:</p>
  
  <pre><code>    set ANSWR = ('reg query "hklm\system\controlset001\control\nls\language" /v Installlanguage')
  
  if %ANSWR% == "0415" (goto DUTCH) else (goto OTHER)
  
  :DUTCH
  MSG * windows is in dutch
  
  EXIT
  
  :OTHER
  
  MSG * CANT FIND VERSION
  
  EXIT
  pause
  </code></pre>