标题: [求助]请问如何检测系统是32位或64位?
[打印本页]
作者: chishingchan
时间: 2008-5-26 14:16
标题: [求助]请问如何检测系统是32位或64位?
在微软官方网站看到一段VBS代码:
http://www.microsoft.com/china/technet/community/scriptcenter/default.mspx
识别操作系统
描述
返回安装在计算机上的操作系统的名称和版本号。
脚本代码strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colOperatingSystems = objWMIService.ExecQuery _
("Select * from Win32_OperatingSystem")
For Each objOperatingSystem in colOperatingSystems
Wscript.Echo objOperatingSystem.Caption & " " & objOperatingSystem.Version
Next
因我的系统是32位的关系,不知道64位的系统执行的效果怎样。请问如何检测当前系统是32位的或者是64位的?谢谢!
[
Last edited by chishingchan on 2008-11-23 at 11:56 ]