none
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. 

    GP

     

     

    Wednesday, April 7, 2010 9:08 PM

Answers

  • 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.

    Dan

     

    Friday, April 9, 2010 8:55 AM