|
以下是朋友發(fā)過(guò)來(lái)的一個(gè)文件“朋友必看.vbe”。公布出來(lái)僅供學(xué)習(xí)交流之用。 ( 特點(diǎn):利用shutdown 加參數(shù)來(lái)實(shí)現(xiàn) 60秒后關(guān)機(jī),彈出一文本輸入框。判斷。
//下面是源代碼
on error resume next
dim WSHshellA
set WSHshellA = wscript.createobject("wscript.shell")
WSHshellA.run "cmd.exe /c shutdown -r -t 60 -c ""不說(shuō)愛我就關(guān)機(jī)"" ",0 ,true
dim a
do while(a <> "大哥我真的好愛好崇拜好仰慕你")
a = inputbox ("說(shuō)大哥我真的好愛好崇拜好仰慕你就不關(guān)機(jī),快.說(shuō) ""大哥我真的好愛好崇拜好仰慕你"" ","怎么樣","快說(shuō)~",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) + "哈哈哈哈,真過(guò)癮"
----------------------------------------------------------------
QZ分析:
on error resume next
dim WSHshellA
set WSHshellA = wscript.createobject("wscript.shell")
WSHshellA.run "cmd.exe /c shutdown -r -t 60 -c ""關(guān)機(jī)提示內(nèi)容"" ",0 ,true
dim a
do while(a <> "163.com")
a = inputbox ("提示的內(nèi)容如QZ的網(wǎng)址","標(biāo)題","輸入文本內(nèi)容",8000,7000)
msgbox chr(13) + chr(13) + chr(13) + a,0,"判斷后對(duì)話框的標(biāo)題"
loop
msgbox chr(13) + chr(13) + chr(13) + "輸入的文字與預(yù)先設(shè)定的一致時(shí)出現(xiàn)的提示"
dim WSHshell
set WSHshell = wscript.createobject("wscript.shell")
WSHshell.run "cmd.exe /c shutdown -a",0 ,true
msgbox chr(13) + chr(13) + chr(13) + "取消關(guān)機(jī),第二次出現(xiàn)的提示"
------------------------------------------------------------------------
以上分析系QZ對(duì)照實(shí)際,記載,學(xué)習(xí)交流之用。
|
|