title: Batch file to check if installed program is 64 bit or 32 bit?
body: <p>How can I create a batch file that tells if an installed program  (.exe) is 32 or 64 bit?</p>
  
  <p>Sometimes you can tell based on the which folder the program.exe file is in. </p>
  
  <p>If the installed program is 32 bit it will show up in the Program Files (x86)folder. If the file is 64 bit it will show up in the Program Files folder.</p>
  
  <p>But this is not always the case...</p>
  
  <p><strong>For example Google Chrome always shows up in Program Files x86</strong> </p>
  
  <p><a href="https://i.stack.imgur.com/PkQ76.png" rel="nofollow noreferrer">Chrome in Program Files x86</a></p>
  
  <p><strong>But the version on my computer is 64 bit:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/yOsFZ.png" rel="nofollow noreferrer">Chrome is actually 64 bit</a></p>
  
  <p>How can I reference chrome.exe for example and have batch tell me if its 64 or 32 bit?</p>