Well, if you really want to reverse-golf it, it's a start.
 Code:
$Bits = IIf(InStr('%PROCESSOR_ARCHITECTURE% %PROCESSOR_ARCHITEW6432%', 'AMD64'), 64, 32)
'Bits: ' $Bits ?

brings the core code for local system detection to one line. It's so small and simple I haven't even bothered with a UDF, especially since when I need this, I need to know remotely, and the WMISysInfo UDF supplies the HW/OS info I need.

If you read the article, it basically says that if either of the Env Vars contain "AMD64", you are running on a 64 bit OS. The only alternative (for Kix, at least) is 32 bit x86. The logic above tests both vars for AMD64 in one pass. If you need to further determine if you're in a WOW64 session, you can read the %PROCESSOR_ARCHITEW6432% value directly.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D