How can I programmatically determine my processor type?
How can I determine programmatically whether my machine is an x86, x64 or an IA64? On Windows Systems you can get the environment variable PROCESSOR_ARCHITECTURE. Here is an MSDN article explaining the values that can be returned. PROCESSOR_ARCHITECTURE=AMD64 PROCESSOR_ARCHITECTURE=IA64 PROCESSOR_ARCHITECTURE=x86 VBScript, checking the PROCESSOR_ARCHITECTURE environment variable: Set oShell = CreateObject("WScript.Shell") Set oEnv = oShell.Environment("System") Select Case LCase(oEnv("PROCESSOR_ARCHITECTURE")) Case "x86" ' x86 Case "amd64" ' amd64 Case "ia64" ' ia64 Case Else ' other End