最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

可以定時自動關(guān)機的vbs腳本

 更新時間:2007年02月26日 00:00:00   作者:  
復(fù)制代碼 代碼如下:

Dim mytime,myout1,myout2 
mytime=null 
mytime=InputBox("請輸入定時時間(格式20:10:05)"&vblf&"如果想倒計時關(guān)機,請輸入倒計時時間"&vblf&"(單位/分鐘)"&vblf&"輸入‘xxx'可以馬上關(guān)機"&vblf&"退出點‘取消'","定時關(guān)機","1") 
Set wshshell=wscript.createobject("wscript.shell") 
If IsNumeric(mytime)=False Then 
If IsDate(mytime)=True Then 
wshshell.run "at "&mytime&" shutdown -s" '定時關(guān)機在任務(wù)列表中 
myout1=MsgBox("定時成功!電腦將在"&mytime&"關(guān)機!放棄關(guān)機請點‘取消'!",vbokcancel,"定時關(guān)機") 
If myout1=vbcancel Then 
wshshell.run "at /delete /y" 
MsgBox "關(guān)機已取消!",64,"定時關(guān)機" 
End If 
Else 
If mytime="xxx" Then 
wshshell.run "shutdown -s -t 0" 
End If 
MsgBox "輸入錯誤!請重新輸入!",64,"定時關(guān)機" 
End If 
Else 
If mytime>600 Or mytime<=0 Then 
MsgBox "輸入錯誤!倒計時不能多于10小時(600分鐘)!",64,"定時關(guān)機" 
wscript.quit 
End If 
wshshell.run "shutdown -s -t "&mytime*60 
myout2=MsgBox("設(shè)置成功!電腦將在"&mytime&"分鐘后關(guān)機!放棄關(guān)機請點‘取消'!",vbokcancel,"定時關(guān)機") 
If myout2=vbcancel Then 
wshshell.run "shutdown -a" 
MsgBox "關(guān)機已取消!",64,"定時關(guān)機" 
End If 
End If

復(fù)制代碼 代碼如下:

set diaolei=createobject("wscript.shell") 
dim shijian,guanji,hua 
shijian=time 
hua=inputbox("請輸入你要用什么單位關(guān)機 1 代表分鐘 2 代表小時 3 代表天") 
if hua=1 then 
guanji=inputbox("請輸入你要幾分鐘后關(guān)機") 
if datediff("m",shijian,time)>=guanji then 
diaolei.run "rundll32.exe user.exe,exitwindows" 
diaolei.run "shutdown -s -t 0" 
elseif hua=2 then 
guanji=inputbox("請輸入你要幾小時后關(guān)機") 
if datediff("h",shijian,time)>=guanji then 
diaolei.run "rundll32.exe user.exe,exitwindows" 
diaolei.run "shutdown -s -t 0" 
elseif hua=3 then 
guanji=inputbox("請輸入你要幾天后關(guān)機") 
if datediff("d",shijian,time)>=guanji then 
diaolei.run "rundll32.exe user.exe,exitwindows" 
diaolei.run "shutdown -s -t 0" 
endif

相關(guān)文章

最新評論

通河县| 琼结县| 个旧市| 奉新县| 镇巴县| 岑巩县| 怀远县| 宕昌县| 凌海市| 莱州市| 寿宁县| 松原市| 天台县| 繁峙县| 沙雅县| 商洛市| 茂名市| 庆元县| 囊谦县| 彭山县| 龙胜| 二连浩特市| 庆云县| 阜宁县| 神木县| 宁河县| 伊川县| 弋阳县| 蓬莱市| 灵台县| 安远县| 淳化县| 温宿县| 南靖县| 重庆市| 吉水县| 上饶县| 无为县| 郸城县| 德化县| 布尔津县|