Guidance
指路人
g.yi.org
Software / Reginald / Examples / repository / Desktop Management / Basic Computer Information / OS.rex

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
/* Displays information about the operating system and service pack installed on a computer. */
objwmiservice = getobject("winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2")
coloses = objwmiservice~execquery("Select * from Win32_OperatingSystem")
DO objos OVER coloses
	SAY "Computer Name:" objos~csname
	SAY "Caption:" objos~caption
	SAY "Version: " objos~version
	SAY "Build Number:" objos~buildnumber
	SAY "Build Type:" objos~buildtype
	SAY "OS Type:" objos~ostype
	SAY "Other Type Description:" objos~othertypedescription
	SAY "Service Pack:" objos~servicepackmajorversion || "." || objos~servicepackminorversion
END
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Wed 2022-8-10  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0 Last modified:2010-07-16 20:49:16