Hi again Rod, But if the one line doesn't work, here's a function made from the code snippet you found for us; I'd be interested to hear if it works better for you than the one line I was using:
Option Explicit speak Is64Win() Function Is64Win() ' returns true if 64-bit windows Dim ObjWMI, ColSettings, ObjProcessor Dim StrComputer, ObjNetwork Is64Win = False Set ObjNetwork = CreateObject("WScript.Network") StrComputer = Trim(ObjNetwork.ComputerName) Set ObjNetwork = Nothing Set ObjWMI = GetObject("WINMGMTS:" & "{ImpersonationLevel=Impersonate,AuthenticationLevel=Pkt}!\\" & StrComputer & "\Root\CIMV2") 'StrComputer = "." 'Set objWMIService = GetObject("winmgmts:" '& "{impersonationLevel=impersonate}!\\" & 'StrComputer & "\root\cimv2") Set ColSettings = ObjWMI.ExecQuery("SELECT * FROM Win32_Processor") For Each ObjProcessor In ColSettings Is64Win = (ObjProcessor.AddressWidth = 64) Next Set ObjProcessor = Nothing: Set ColSettings = Nothing: Set ObjWMI = Nothing: StrComputer = vbNullString End Function -----Original Message----- From: Scripting [mailto:scripting-bounces+lists3717=comcast....@lists.window-eyes.com] On Behalf Of Chip Orange via Scripting Sent: Sunday, April 26, 2015 4:48 PM To: 'Rod Hutton'; 'Window-Eyes Scripting List' Subject: RE: Identifying 64-bit system Hi Rod, Instead of using the GW toolkit object, try this one line of code instead (which returns true if you are on 64 bit Windows); it works for me in correctly identifying that I am running on 32 bit Windows; what does it tell you re your 64 bit Windows? Speak desktopWindow.process.Is64Bit Thanks. Chip -----Original Message----- From: Scripting [mailto:scripting-bounces+lists3717=comcast....@lists.window-eyes.com] On Behalf Of Rod Hutton via Scripting Sent: Saturday, April 25, 2015 10:36 AM To: 'Window-Eyes Scripting List' Subject: Identifying 64-bit system Hi guys, One thing I noticed is that the current version of the GW Toolkit shared object called Is64bitOS doesn't seem to properly detect that my Dell Windows 7 x64 Home Premium system is indeed 64-bit. I've tested this with Window-Eyes 8.4, as well as version 9.1 on the same Dell system, in the latter case, running in a virtual machine. I googled and found the following MS Technet page where it had the vbScript code as well as a download link for a script which does the job very well, since it accurately reports my system as 64-bit: https://gallery.technet.microsoft.com/scriptcenter/Determine-If-Your-System- 969670e3 I was wondering if anyone has also noticed this failure in the performance of the current version of the GW Toolkit shared Object called Is64bitOS, or whether this is specific to my system. Also, I would be interested to know if anyone has any other ideas on this issue. Thanks, Rod -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 3432 bytes Desc: not available URL: <http://lists.window-eyes.com/private.cgi/scripting-window-eyes.com/attachme nts/20150425/7d38a28c/attachment.bin> _______________________________________________ Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Ai Squared. For membership options, visit http://lists.window-eyes.com/options.cgi/scripting-window-eyes.com/lists3717 %40comcast.net. For subscription options, visit http://lists.window-eyes.com/listinfo.cgi/scripting-window-eyes.com List archives can be found at http://lists.window-eyes.com/private.cgi/scripting-window-eyes.com _______________________________________________ Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Ai Squared. For membership options, visit http://lists.window-eyes.com/options.cgi/scripting-window-eyes.com/lists3717 %40comcast.net. For subscription options, visit http://lists.window-eyes.com/listinfo.cgi/scripting-window-eyes.com List archives can be found at http://lists.window-eyes.com/private.cgi/scripting-window-eyes.com _______________________________________________ Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Ai Squared. For membership options, visit http://lists.window-eyes.com/options.cgi/scripting-window-eyes.com/archive%40mail-archive.com. For subscription options, visit http://lists.window-eyes.com/listinfo.cgi/scripting-window-eyes.com List archives can be found at http://lists.window-eyes.com/private.cgi/scripting-window-eyes.com