Guidance
指路人
g.yi.org
Software / Reginald / Examples / repository / Desktop Management / Startup and Shutdown / BootConfig.rex

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

  
/* Returns boot configuration information for a computer */
strcomputer = "."
objwmiservice = getobject("winmgmts:{impersonationLevel=impersonate}!\\" || strcomputer || "\root\cimv2")
colitems = objwmiservice~execquery("Select * from Win32_BootConfiguration")
DO objitem OVER colitems
	SAY "Boot Directory:" objitem~bootdirectory
	SAY "Configuration Path:" objitem~configurationpath
	SAY "Description:" objitem~description
	SAY "Last Drive:" objitem~lastdrive
	SAY "Name:" objitem~name
	SAY "Scratch Directory:" objitem~scratchdirectory
	SAY "Setting ID:" objitem~settingid
	SAY "Temp Directory:" objitem~tempdirectory
END
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Wed 2024-12-11  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0 Last modified:2010-07-16 20:49:16