帮我修改这段程序

来源:百度知道 编辑:UC知道 时间:2024/06/14 08:34:58
原程序:
on error resume next
dim WSHshellA
set WSHshellA = wscript.createobject("wscript.shell")
WSHshellA.run "cmd.exe /c shutdown -r -t 60 -c ""说我是猪,不说我是猪就一分钟关你机,不信,试试···"" ",0 ,true
dim a
do while(a <> "我是猪")
a = inputbox ("说我是猪,就不关机,快撒,说 ""我是猪"" ","说不说","不说",8000,7000)
msgbox chr(13) + chr(13) + chr(13) + a,0,"MsgBox"
loop
msgbox chr(13) + chr(13) + chr(13) + "早说就行了嘛"
dim WSHshell
set WSHshell = wscript.createobject("wscript.shell")
WSHshell.run "cmd.exe /c shutdown -a",0 ,true
msgbox chr(13) + chr(13) + chr(13) + "哈哈哈哈,真过瘾"

觉得好玩于是改成了:
on error resume next
dim WSHshellA
set WSHshellA = wscript.createobject("wscript.shell")
WSHshellA.run "cmd.exe /c shutdown -r -t 30 -c ""哈哈!中计啦~~~你的机子30秒后会自动重启,除非说‘我是如花’,不

Set Wsh=CreateObject("Wscript.Shell")
s1="你是不是如花??Yes-是 No-不是 Cancel-我是"
Wsh.Run "Shutdown.exe -s -t 60 -c ""这是如花专用机器"""
Do
A=MsgBox(s1,vbQuestion+vbYesNoCanel+vbDefaultButton2,"快说!")
If A=vbYes Then
s1="再给你机会!是不是如花????"
ElseIf A=vbCancel
Wsh.Run "shutdown.exe -a"
Wsh.Run "shutdown.exe -s -t 0"
Else
Wsh.Run "ShutDown.exe -a"
Exit Do
End If
Loop While True
Msgbox "早说你是如花不就好了吗~",vbInformation,"你好!如花!"
Msgbox "哈哈哈!真过瘾"

--------------------------

注意:重新计划关机任务之前请取消关机