vbscript【恶搞】 你不是猪就自动关机

妈耶 突然找到一个很好玩的vbscript脚本文件,可以恶搞别人的电脑–
代码如下:

dim pig,WSHshell
pig=inputbox("请输入我是猪","系统提示","在这输入")
set WSHshell = wscript.createobject("wscript.shell")
If pig="我是猪" Then
    msgbox("猪是不会使用电脑的")
    WSHshell.run "shutdown -f -s -t 00",0,true
else 
    WSHshell.run "shutdown -f -s -t 00",0,true
end if

注意保存的时候为ANSI编码, 不然中文字符很可能会乱码
双击打开这个文件会出现一个消息框 输入框 如果输入“我是猪” 那么会显示消息“猪是不会使用电脑的”并且关闭电脑
如果不输入“我是猪” 那么就会直接关闭电脑 很恶心

猜你喜欢

转载自blog.csdn.net/towrabbit/article/details/80193800
今日推荐