谁看得懂这段程序,我被这程序害死了

来源:百度知道 编辑:UC知道 时间:2024/06/01 04:05:20
程序是这样的
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) + "哈哈哈哈,真过瘾"

之后电脑一开金山毒霸之类的就老重启,还倒计时的,郁闷

你懂VB就没事了

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) + "哈哈哈哈,真过瘾" ’输入信息

好了,不说了先看吧

在“打开”中输入命令“shutdown -a”即可。

这段程序和金山毒霸之类的没关系,是用VB编的
它只是调用了系统自带的关机命令
cmd.exe /c shutdown -a