Guidance
指路人
g.yi.org
Software / Reginald / Examples / repository / Desktop Management / System Restore / LastResults.rex

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

  
/* Displays the results (failed, succeeded, interrupted) of the last system restore performed on a computer */
strcomputer = "."
objwmiservice = getobject("winmgmts:{impersonationLevel=impersonate}!\\" || strcomputer || "\root\default")
objitem = objwmiservice~get("SystemRestore")
errresults = objitem~getlastrestorestatus()
SELECT errresults
	WHEN 0 THEN strrestorestatus = "The last restore failed."
	WHEN 1 THEN strrestorestatus = "The last restore was successful."
	WHEN 2 THEN strrestorestatus = "The last restore was interrupted."
	OTHERWISE strrestorestatus = "Unknown"
END
SAY strrestorestatus

掌柜推荐
 
 
¥287.00 ·
 
 
¥2,600.00 ·
 
 
¥289.00 ·
 
 
¥1,370.00 ·
 
 
¥289.00 ·
 
 
¥1,480.00 ·
© Sun 2024-11-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0 Last modified:2010-07-16 20:49:16