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