title: How to get Windows OS Environment Variable from System Property
body: <p>I am encountering a strange problem about System Property environment variable.  </p>
  
  <p>As you know, we can open <code>Computer-&gt;Property-&gt;Advanced System Settings-&gt;Advanced-&gt;System Environment Variables-&gt;User Variables for admin</code>  </p>
  
  <p>I change Variable TEMP' value to C:\mytemp\ and click OK to save it.  </p>
  
  <p>However, In command line, when I echo <code>%TEMP%</code>, it still show original path, <code>C:\Users\admin\AppData\Local\Temp</code>.  </p>
  
  <p>When I input %TEMP% in explorer, it will go to C:\mytemp  </p>
  
  <p>Now I want to user API to get the path, <code>GetEnvironmentVariable()</code> will also return path which is same as echo %TEMP% in command line. how can I get the path as exploer did. 
  Thanks in advance.  </p>
  
  <p>PS. OS is Win7 x86</p>