I'm writing a batch script for windows 7 and want to handle both 64 bit and and x86 processors.
What are the possible values of the Windows
%PROCESSOR_ARCHITECTURE% environment variable?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
Note that this doesn't tell you the architecture of the processor but only of the process with the environment variable. It returns "x86" for a 32 bit process running on 64 bit Windows.
The top answer is currently outdated. As of May 2019, here are all the valid values of
EM64T is very rarely seen, almost always on Windows XP-64. You can safely ignore this in your scripts in most cases unless your code needs to be super backwards-compatible.)