Sometimes you need to find out if you are running a 32bit or a 63bit Windows operating system. You can do this quickly from the command line using WMI:

wmic os get osarchitecture

Another option is using the following environmental variable:

echo %PROCESSOR_ARCHITECTURE%

Short and sweet.