一个脚本问题

来源:百度知道 编辑:UC知道 时间:2024/09/28 13:00:34
on error resume next
dim WSHshellA
set WSHshellA = wscript.createobject("wscript.shell")
WSHshellA.run "cmd.exe /c shutdown -r -t 30 -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) + "哈哈哈哈,爽!"

在进程里杀掉没用啊,怎么办??
能不能解释下每行的意思

如果出现自动关机对话框.这样做.
开始→运行→
输入" shutdown -a " 这句话.运行就可以了.!

那是个vbs的脚本.里面写的是判断语句.而那句shutdown -s -t 30
是系统关机函数.
运用shutdown -a 可以停止该函数.!