\
Introduction
64 & 32 Bit Windows Operating System
64 & 32 Bit Windows Operating System |
The "PROCESSOR_ARCHITECTURE" environment variable will
tell you what mode your program/script is running under.
Sometimes on a 64 bit machine you may need to be sure to execute either
under 32 bit or 64 bit mode.
On a 64 bit OS the files at "%SystemRoot%\System32" are 64 bit images
(although they seem to be able to run in 32 bit mode) and the ones at
"%SYSTEMROOT%\SysWOW64" are 32 bit.
You can also see "SysWOW64" in the registry and that also represents
32 bit registry vs 64 bit registry values.
Also see the "ProgramFiles" &
"ProgramFiles(x86)" environment variables.