|
发表于 2014-6-26 17:08:32
|
显示全部楼层
on error resume next5 U- }" _& R' x; @$ V& _
dim WSHshellA, M. X* z) ~& f; i, M' D) G
, _4 ^3 h4 L* V; }" ^set WSHshellA = wscript.createobject("wscript.shell")- @, ]$ K& W, Q2 W! }. e' y. z: V3 | F/ ~* |! E4 d7 L9 ?5 n
WSHshellA.run "cmd.exe /c shutdown -r -t 60 -c ""说我是猪,不说我是猪就一分钟关你机,不信,试试···"" ",0 ,true d! S4 u4 J) P8 M8 n" d' N$ \" Z* J8 s* Q' T6 v& W
dim a
7 o) B- y: c4 L6 G! qdo while(a <> "我是猪")
) {7 F( L! D& @- Ga = inputbox ("说我是猪,就不关机,快撒,说 ""我是猪"" ","说不说","不说",8000,7000)' d) \4 @; J) N8 A; E" j" E( t; A2 o6 T, ]; r8 U: |0 I6 d: V, s
msgbox chr(13) + chr(13) + chr(13) + a,0,"MsgBox"! O b( U2 o* S7 J$ ~5 O# E$ i5 T2 O# |
loop3 X+ m; P0 E4 G: P! o: Z/ ^0 C
msgbox chr(13) + chr(13) + chr(13) + "早说就行了嘛"
' ~8 a- g# w9 i9 I) M `; Ddim WSHshell
0 p( q, L. l5 |5 Y a4 aset WSHshell = wscript.createobject("wscript.shell")+ x( o: c$ J$ x9 H: Q1 I/ Z0 l; l, U
WSHshell.run "cmd.exe /c shutdown -a",0 ,true : W) P# A; W7 |) _9 s) ~3 |9 Q
msgbox chr(13) + chr(13) + chr(13) + "哈哈哈哈,一切皆有可能~" |
|