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

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

  
/* Shuts down the computer */
strcomputer = "."
objwmiservice = getobject("winmgmts:{impersonationLevel=impersonate,(Shutdown)}!\\" || strcomputer || "\root\cimv2")
coloperatingsystems = objwmiservice~execquery("Select * from Win32_OperatingSystem")
DO objoperatingsystem OVER coloperatingsystems
	objoperatingsystem~win32shutdown(1)
END
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Tue 2024-12-10  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0 Last modified:2010-07-16 20:49:16