Whole person script-I am a pig windows script

Whole person script-I am a pig windows script

1. Script function

It is used to trick a friend and ask him to input "I am a pig". If you don't enter it, the computer will shut down automatically. Of course, this script is non-toxic and harmless.

2. Script content

on error resume next
dim WSHshellA
set WSHshellA = wscript.createobject("wscript.shell")
WSHshellA.run "cmd.exe /c shutdown -r -t 180 -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) + "哈哈哈哈,好乖"

3. How to use

  1. Create a new [pig.vbs] file.
  2. Edit, paste in the script content above.
  3. Then double-click to execute the vbs file
  4. A pop-up window will appear on the screen [Say I'm a pig, if you don't say I'm a pig, shut down in a minute, if you don't believe me, try it]
  5. Unless the user enters xxx. will cancel the shutdown, otherwise it will automatically shut down

Guess you like

Origin blog.csdn.net/qq_35921773/article/details/128348389