batch file code to detect 32-bit vs 64-bit office not working : <p>I'm trying to put together a batch file that would select the appropriate bit version of executables when run by the user. I found this code on stackoverflow:
<a href="https://stackoverflow.com/questions/35820375/batch-file-check-office-architecture-version">Batch file check office architecture version</a>
The problem is that it does not work when I paste it into a text file on my desktop and rename it .bat in my virtual machine that has 64-bit Office 2010 installed: it claims it is 32-bit, the default value set in the code. Not being adept in checking registry entries, I'm wondering if there isn't a ready-made version out there somewhere that actually works. I'm also wondering why there isn't a simple way to determine this. I would have thought that this is something that Microsoft would make easily accessible to developers. </p>
