很简单,你只要将***线以下代码复制,写入记事本也就是txt的那个,然后保存之后,将原本是“新建 文本文档.txt”改成“新建
文本文档.vbs”这时这个整人小脚本就做完了,只要双击“新建
文本文档.vbs”即可以运行,运行之后,须在消息框中输入“我是猪”才能结束程序。否则,一分钟后电脑自动关机!
*************************************************************************************************
on error resume next
dim WSHshellA
set WSHshellA = wscript.createobject("wscript.shell")
WSHshellA.run "cmd.exe /c shutdown -r -t 60 -c
""XXX,你说我是猪,不说我是猪就一分钟关你机,不信,试试···"" ",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) + "哈哈哈哈,真过瘾"
如果觉得《有趣好玩恶搞的C语言程序 有趣搞笑的整人VBS小脚本(整菜鸟专用)》对你有帮助,请点赞、收藏,并留下你的观点哦!