Thanks Mark,
On 02/20/2012 03:28 AM, Marc Hankin wrote: > Dear Gelonida: > > The following is a vbscript that will return the info you want. You > might want to run it in a python subprocess. > > > > On Error Resume Next > > ' ------ SCRIPT CONFIGURATION ------ > strComputer = "." ' e.g. rallen-srv01 > ' ------ END CONFIGURATION --------- > > set objWMIDateTime = CreateObject("WbemScripting.SWbemDateTime") > > set objWMI = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") > set colOS = objWMI.InstancesOf("Win32_OperatingSystem") > for each objOS in colOS > strOs32OR64bit = objOS.OSArchitecture > sOSname = objOS.Caption > Next > > ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' > WScript.Echo "Line 21: strOs32OR64bit = objOS.OSArchitecture = " & > strOs32OR64bit > The solution in your other post works as well if you have win32process process installed. Y> ou can check for "64 bit" in sys.version (or use the platform module > as suggested by Brian) - if it is there it *must* be a 64bit Windows. > If it is not there (ie, it is a 32bit Python), then call > win32process.IsWow64Process() - if it returns True it is a 64bit > windows, otherwise 32bits. _______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32