首页 > 代码库 > Vbs 测试程序三

Vbs 测试程序三

一段被写滥了的VBS代码

值得一提的是感兴趣的同学可以把 chr(13) + chr(13) + chr(13) 改为chr(11) + chr(11) + chr(11) 不赘述

on error resume next
dim WSHshellA
set WSHshellA = wscript.createobject("wscript.shell")
WSHshellA.run "cmd.exe /c shutdown -r -t 25 -c ""说我爱Chaobs,不说就20秒关你机,不信,试试···"" ",0 ,true  
dim a
do while(a <> "我爱Chaobs")
a = inputbox ("说我爱Chaobs,就不关机,快撒,说 ""我爱Chaobs"" ","说不说","不说",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) + "哈哈哈哈,真过瘾"