I think that also has problems because it is only looking for Office15. I think one would have to instead search for winword.exe such as:
 Code:
dir "c:\program files\microsoft office\winword.exe" /s /b
If it finds it, then it is 64 bit else repeat with inserting "(x86)" into the string.