For checking 64 it windows from batch file RRS feed

  • Question

  • For checking 64 it windows from batch file, can I just use directory check for "SYSwow64" or program files86. I am looking for simpler solution than the registry call gets too complicated to check. 




    Wednesday, April 7, 2010 9:08 PM


  • How about the PROCESSOR_ARCHITECTURE environment variable? Returns AMD64 when running a 64 bit process on an x64 OS. Keep in mind that 32 bit processes running in wow64 will return x86 from this var (try %processor_architecture% from the cmd.exe in C:\Windows\SysWOW64), so make sure your batch file runs 64 bit native.



    • Proposed as answer by parmita mehta Monday, April 12, 2010 6:53 PM
    • Marked as answer by Don Pattee Thursday, May 6, 2010 11:43 PM
    Friday, April 9, 2010 8:55 AM