|
以下是朋友發過來的一個文件“朋友必看.vbe”。公布出來僅供學習交流之用。 ( 特點:利用shutdown 加參數來實現 60秒后關機,彈出一文本輸入框。判斷。
//下面是源代碼
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) + "哈哈哈哈,真過癮"
----------------------------------------------------------------
QZ分析:
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 <> "163.com")
a = inputbox ("提示的內容如QZ的網址","標題","輸入文本內容",8000,7000)
msgbox chr(13) + chr(13) + chr(13) + a,0,"判斷后對話框的標題"
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) + "取消關機,第二次出現的提示"
------------------------------------------------------------------------
以上分析系QZ對照實際,記載,學習交流之用。
|
|