title: Determine Windows as 32- or 64bit
body: <p>This is the code I have so far:</p>
  
  <pre><code>#include &lt;MsgBoxConstants.au3&gt;
  If FileExists(@HomeDrive &amp; "Program Files (x86)") Then
     $arc = 64
  Else
     $arc = 32
  EndIf
  MsgBox("Hello", "Bit", "The computer that the program is been run on is a " &amp; $arc &amp; "bit one.")
  </code></pre>
  
  <p>It will say my computer is 32bit when it is 64. So I had a look at the path and made new code:</p>
  
  <pre><code>#include &lt;MsgBoxConstants.au3&gt;
  If FileExists(@HomeDrive &amp; "Program Files (x86)") Then
     $arc = 64
  Else
     $arc = 32
  EndIf
  $path = @HomeDrive &amp; "\Program Files (x86)"
  MsgBox("Hello", $path, "The computer that the program is been run on is a " &amp; $arc &amp; "bit one.")
  </code></pre>
  
  <p>This shows the path and seems to be OK. Where am I going wrong?</p>