admin管理员组文章数量:1581990
第一步:新建个文本文档,在文本里写上下面的代码:
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) + "哈哈哈哈,我知道了 你是猪~"
第二步: 点击左上角 文件-另存为-桌面
文件名称随便写,唯一注意要把文件名称后边扩展名改为 .vbe
(例如:起的名称为 “我的相片” 改为 “我的相片.vbe”)保存就可以了
只要打开此文件,就会开始倒计时
如果说了“我是猪”就会解除,反之60秒后自动关机
版权声明:本文标题:c语言说我是猪不然自动关机,【整蛊代码】说我是猪,不说60秒就强制关机 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/dongtai/1727888109a1136126.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论