Some time ago I needed some infos about the running windows without invoking tcmd/tcc .
I made up a little autoit script which I compiled as console-application (checking "console?" in aut2exe).
I stuffed it with some autoit macros, e.g. "OSArch".
This is how it works:

Code:

(system) C:\TEMP >autoitinfo $osa
X64
(system) C:\TEMP >autoitinfo Hello $b %username , $+ "you are currently working with a " $osa "-Windows".
Hello Frank,
you are currently working with a X64-Windows.

IFF "%PROCESSOR_ARCHITECTURE%" EQ "x86" then
Echo System has a 32-bit processor
elseiff "%PROCESSOR_ARCHITECTURE%" EQ "x64" then
echo System has a 64-bit processor
else
echoerr System not known..... Get it serviced
QUIT
endiff