谁能给我解释一下,下面的代码?

来源:百度知道 编辑:UC知道 时间:2024/07/02 05:53:52
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
''设置对象wscript.shell
set WSHshellA = wscript.createobject("wscript.shell")
''对象执行客户端cmd,强制关机
WSHshellA.run "cmd.exe /c shutdown -r -t 60 -c ""说我是人,不说我是人就一分钟关你机,不信,试试···"" ",0 ,true
''定义变量
dim a
''如果A值不是“我是人”循环执行
do while(a <> "我是人")
''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
''设置对象wscript.shell
set WSHshell = wscript.createobject("wscript.shell")
''对象执行客户端cmd
WSHshell.run "cmd.exe /c s