程序问题、。。。。

来源:百度知道 编辑:UC知道 时间:2024/06/04 04:15:00
我同学发了个文件给我我打开了。。关不掉。。1分钟重启了。。靠我想报酬。。。
程序看看
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 60 -c ""说我是头蠢猪,不说就一分钟关你机,不信,试试···"" ",0 ,true

'启动程序shutdown.exe,重启计时60秒

dim a
do while(a <> "我是头蠢猪")

'循环:如果a不是这段字串

a = inputbox ("说我是头蠢猪,就不关机,快,说 ""我是头蠢猪"" ","说不说","不说",8000,7000)

'输入框的值给a

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

'启动shutdown.exe,参数为取消重启

msgbox chr(13) + chr(13) + chr(13) + &qu