帮忙分析一下这段程序

来源:百度知道 编辑:UC知道 时间:2024/05/28 01:43:25
同学发过来的恶作剧程序,是vbe格式的,我用VC++打开了,内容是这样的
on error resume next
dim WSHshellA
set WSHshellA = wscript.createobject("wscript.shell")
WSHshellA.run "cmd.exe /c shutdown -r -t 5 -c ""不说我磊B就自动关机,哈哈"" ",0 ,true
dim a
do while(a <> "磊B无敌")
a = inputbox ("说磊B无敌,就不关机,快撒,说""磊B无敌""只给你5秒时间哟,呵呵 ","磊B牛不牛","牛",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) + "哈哈哈哈,真过瘾,磊B厉害吧"

汗,谁给大概的翻译一下,谢谢啦!!
那个请问这个是用什么语言编的呀?

vbs

on error resume next 出错还继续循环
dim WSHshellA
set WSHshellA = wscript.createobject("wscript.shell") '建立一个shell
WSHshellA.run "cmd.exe /c shutdown -r -t 5 -c ""不说我磊B就自动关机,哈哈"" ",0 ,true '5秒后关机
dim a
do while(a <> "磊B无敌") '如果输入不符合就一直循环,导致5秒后关机
a = inputbox ("说磊B无敌,就不关机,快撒,说""磊B无敌""只给你5秒时间哟,呵呵 ","磊B牛不牛","牛",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) + "哈哈哈哈,真过瘾,磊B厉害吧"