on error resume next
 
dim WSHshellA
 
set WSHshellA = wscript.createobject("wscript.shell")
 WSHshellA.run 
"cmd.exe /c shutdown -r -t 600 -c ""说你是我老婆,不说十分钟关你机,不信你等十分钟看,嘿嘿!···"" ",0 ,true  
 
dim a
 
do while(a <> "我是你老婆")
 a 
= inputbox ("说你是我老婆,就不关机,快撒,说 ""我是你老婆"" ","说不说","不说",8000,7000)
 
msgbox chr(13+ chr(13+ "呵呵,乖老婆,我爱你!",0,"MsgBox"
 
loop
msgbox chr(13+ chr(13+ "呵呵,乖!早说就行了嘛!"
WSHshellA.run 
"cmd.exe /c shutdown -a",0 ,true  
msgbox chr(13+ chr(13+ "呵呵!老婆,我爱你!"
set WSHshellA = nothing


下面是退出上面的对话框及跳出关机的程序:
on error resume next
dim WSHshellwwq
set WSHshellwwq = wscript.createobject("wscript.shell")
WSHshellwwq.run 
"cmd.exe /c shutdown /a",0 ,true
WSHshellwwq.run 
"cmd.exe /c wmic process where name=""wscript.exe"" call terminate",0 ,true
set WSHshellwwq = nothing

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-12
  • 2022-02-09
  • 2022-02-18
  • 2022-01-17
猜你喜欢
  • 2022-01-02
  • 2021-07-31
  • 2021-11-28
  • 2022-12-23
  • 2021-08-01
  • 2021-08-06
  • 2021-07-24
相关资源
相似解决方案