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

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

  
/* Returns a list of startup options for a computer, including the startup delay time and other information found in Boot.ini */
strcomputer = "."
objwmiservice = getobject("winmgmts:{impersonationLevel=impersonate}!\\" || strcomputer || "\root\cimv2")
colstartupcommands = objwmiservice~execquery("Select * from Win32_ComputerSystem")
DO objstartupcommand OVER colstartupcommands
	SAY "Reset Boot Enabled:" objstartupcommand~automaticresetbootoption
	SAY "Reset Boot Possible:" objstartupcommand~automaticresetcapability
	SAY "Boot State:" objstartupcommand~bootupstate
	SAY "Startup Delay:" objstartupcommand~systemstartupdelay
	opts. = objstartupcommand~systemstartupoptions
	DO i OVER opts.
		SAY "Startup Options:" VALUE("OPTS." || i)
	END
	SAY "Startup Setting:" objstartupcommand~systemstartupsetting
END
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Wed 2022-8-10  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0 Last modified:2010-07-16 20:49:16