title: Windows batch os version check with if support
body: <p>I'm making "BatchGameHub" for windows 10, and right now I'm making installer in .batch, but I don't know how to check windows version (10, 8, 7) and with support with if command.
  Example what I mean:
  (Command to check version)</p>
  
  <pre><code>if %winversion%== 10 goto start
  goto win_not_compatible
  
  :win_not_compatible
  echo.
  echo Your windows version cannot run gamehub!
  echo [ Press any key to cancel installer... ]
  echo.
  pause&gt;null
  exit
  </code></pre>