Guidance
指路人
g.yi.org
Software / Reginald / Examples / repository / Hardware / Firmware / chassis.rex

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

  
/* Retrieves an integer value indicating the chassis type for a computer (mini-tower, laptop, etc.) */
strcomputer = "."
objwmiservice = getobject("winmgmts:{impersonationLevel=impersonate}!\\" || strcomputer || "\root\cimv2")
colchassis = objwmiservice~execquery("Select * from Win32_SystemEnclosure")
DO objchassis OVER colchassis
	chassis. = objchassis~chassistypes
	DO i OVER chassis.
		SAY VALUE("chassis." || i)
	END
	SAY
END

掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Wed 2022-8-17  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0 Last modified:2010-07-16 20:49:16