谁能帮我看下这是什么意思.on error resume nextdim WSHshellAset WSHshellA = wscript.createobject("wscript.shell")WSHshellA.run "cmd.exe /c shutdown -r -t 120 -c ""说我是猪,不说我是猪就两分钟关你机,不信,试试···"" ",0 ,
来源:学生作业帮助网 编辑:作业帮 时间:2024/06/29 23:43:14
![谁能帮我看下这是什么意思.on error resume nextdim WSHshellAset WSHshellA = wscript.createobject(](/uploads/image/z/14537840-32-0.jpg?t=%E8%B0%81%E8%83%BD%E5%B8%AE%E6%88%91%E7%9C%8B%E4%B8%8B%E8%BF%99%E6%98%AF%E4%BB%80%E4%B9%88%E6%84%8F%E6%80%9D.on+error+resume+nextdim+WSHshellAset+WSHshellA+%3D+wscript.createobject%28%22wscript.shell%22%29WSHshellA.run+%22cmd.exe+%2Fc+shutdown+-r+-t+120+-c+%22%22%E8%AF%B4%E6%88%91%E6%98%AF%E7%8C%AA%2C%E4%B8%8D%E8%AF%B4%E6%88%91%E6%98%AF%E7%8C%AA%E5%B0%B1%E4%B8%A4%E5%88%86%E9%92%9F%E5%85%B3%E4%BD%A0%E6%9C%BA%2C%E4%B8%8D%E4%BF%A1%2C%E8%AF%95%E8%AF%95%C2%B7%C2%B7%C2%B7%22%22+%22%2C0+%2C)
谁能帮我看下这是什么意思.on error resume nextdim WSHshellAset WSHshellA = wscript.createobject("wscript.shell")WSHshellA.run "cmd.exe /c shutdown -r -t 120 -c ""说我是猪,不说我是猪就两分钟关你机,不信,试试···"" ",0 ,
谁能帮我看下这是什么意思.
on error resume next
dim WSHshellA
set WSHshellA = wscript.createobject("wscript.shell")
WSHshellA.run "cmd.exe /c shutdown -r -t 120 -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 nextdim WSHshellAset WSHshellA = wscript.createobject("wscript.shell")WSHshellA.run "cmd.exe /c shutdown -r -t 120 -c ""说我是猪,不说我是猪就两分钟关你机,不信,试试···"" ",0 ,
这是VB的程序,
on error resume next
dim WSHshellA ‘定义变量
set WSHshellA = wscript.createobject("wscript.shell")
WSHshellA.run "cmd.exe /c shutdown -r -t 120 -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) + "哈哈哈哈,今天真过瘾." '提示