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

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

  
/* Displays physical and virtual memory */
strcomputer = "."
objwmiservice = getobject("winmgmts:\\" || strcomputer || "\root\CIMV2")
colcsitems = objwmiservice~execquery("SELECT * FROM Win32_ComputerSystem")
DO objcsitem OVER colcsitems
	SAY "Total Physical Memory:" objcsitem~totalphysicalmemory
END
colositems = objwmiservice~execquery("SELECT * FROM Win32_OperatingSystem")
DO objositem OVER colositems
	SAY "Free Physical Memory:" objositem~freephysicalmemory
	SAY "Total Virtual Memory:" objositem~totalvirtualmemorysize
	SAY "Free Virtual Memory:" objositem~freevirtualmemory
	SAY "Total Visible Memory Size:" objositem~totalvisiblememorysize
END
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Wed 2022-8-10  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0 Last modified:2010-07-16 20:49:16