How do i detect the bitness (32-bit vs. 64-bit) of the Windows OS in VBScript?
I tried this approach but it doesn\'t work; I guess the (x86) is causing some problem
WMIC queries may be slow. Use the environment strings:
Function GetOsBits() Set shell = CreateObject("WScript.Shell") If shell.ExpandEnvironmentStrings("%PROCESSOR_ARCHITECTURE%") = "AMD64" Then GetOsBits = 64 Else GetOsBits = 32 End If End Function