大佬教程收集整理的这篇文章主要介绍了Windows关闭/重新启动通知程序提供延迟选项,类似于自动更新,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
其中一个可用的开关是-c.它允许用户通过按“取消”按钮停止重新启动.
您可以将其设置为每X分钟循环一次,直到用户准备好重新启动计算机.
一个更简洁的方法是编写自己的VBscript.这可以提供一个时髦的对话框,例如,是和否.如果他们点击否,它会在再次询问之前睡眠X分钟.这很容易写.
编辑:嗯,我很无聊所以我为你制作了剧本.请享用.
option explicit on error resume next Dim strComputer,intRebootChoice Dim objWMIservice,objOperatingSystem Dim colOperatingSystems strComputer = "." do while 1>0 intRebootChoice = msgBox("OI,you,need to reboot. Choose No to be asked again 1 hour",308,"Reboot incoming") SELEct casE intRebootChoice case 6 Set objWMIservice = GetObject("winmgmts:" & "{impersonationLevel=impersonate,(Shutdown)}!\\" & strComputer & "\root\cimv2") Set colOperatingSystems = objWMIservice.ExeCQuery ("SELEct * from Win32_OperatingSystem") For Each objOperatingSystem in colOperatingSystems ObjOperatingSystem.Reboot(1) Next case 7 wscript.sleep(3600000) case else 'shenanigans' end SELEct loop
以上是大佬教程为你收集整理的Windows关闭/重新启动通知程序提供延迟选项,类似于自动更新全部内容,希望文章能够帮你解决Windows关闭/重新启动通知程序提供延迟选项,类似于自动更新所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。