title: how to get program files x86 env variable?
body: <p>I would like to know how I can display the location of Program Files (x86) in Command Prompt. I'm using Windows 7 64bit.</p>
  <p>I've tried:</p>
  <p><code>echo %programfiles(x86)%</code> and <code>echo %programfiles%</code>.</p>
  <p>Both of these output <code>C:\Program Files</code></p>
  <p>When I manually checked the registry,<br />
  <em>HKLM/Software/microsoft/windows/currentversion</em>,<br />
  the <code>programfilesdir</code> points to <code>C:\Program Files</code> and</p>
  <p><em>HKLM/Software/WOW64/Microsoft/windows/currentversion</em>,<br />
  the <code>programfilesdir</code> points to <code>C:\Program Files (x86)</code>.</p>
  <p>But, why am I always seeing <code>C:\Program Files</code> displayed?</p>