title: Environment.GetEnvironmentVariable("windir") strange behavior
body: <p>The line is </p>
  
  <pre><code>if (!val.Contains(Environment.GetEnvironmentVariable("windir")))
  </code></pre>
  
  <p>Which seems to work just fine with a Windows 7(64-bit) system and will detect whether the string I'm looking at contains any version of c:\windows with any capitalization. But under XP, the same code does not seem to detect the changes in case. I have all the results printing to the console for debugging and some c:\WINDOWS are getting through, but when I execute </p>
  
  <pre><code>echo %windir%
  </code></pre>
  
  <p>in the Command window, I get C:\WINDOWS. Is there a way to rewrite my test so that it doesn't break compatibility with Win7 but will catch these differences with XP?</p>
  
  <p>Thanks</p>