title: Windows 7 environment variable not working in path
body: <p>I am trying to set up some path using environment variable.
  I added an environment variable "MAVEN_HOME" with the value "C:\maven".
  Then in the path I added "%MAVEN_HOME%\bin;...rest".
  When I type "echo $MAVEN_HOME%" I get the correct "C:\maven" printed on the screen.
  But when I type "mvn" which is a batch file in the "bin" directory, it can't find it.</p>
  
  <p>So, I manually added the entire path in PATH.
  "C:\maven\bin;...rest"
  and it was able to find "mvn" and execute it.</p>
  
  <p>Could someone help me what I did wrong?</p>