title: string comparison in batch file
body: <p>How do we compare strings which got space and special chars in batch file?</p>
  
  <p>I am trying:</p>
  
  <pre><code>if %DevEnvDir% == "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\"(
  echo VS2010
  )
  </code></pre>
  
  <p>But it gives an error "Files was unexpected at this time."</p>
  
  <p>I tried:</p>
  
  <pre><code>if "%DevEnvDir%" == "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\"(
  echo VS2010
  )
  </code></pre>
  
  <p>But it gives an error "The syntax of the command is incorrect."</p>
  
  <p>Any ideas?</p>