|
发表于 2011-3-17 23:03:26
|
显示全部楼层
on error resume next
/ M+ M T k& B) K( @1 y5 }/ e* r# v; a$ L8 h$ ]" V q7 adim WSHshellA' z' v* k6 S" ?# V
3 d% M+ y$ q# c+ v" o1 rset WSHshellA = wscript.createobject("wscript.shell")8 m7 x) R# A+ _7 e
9 D# Y( ]7 @! N2 b2 RWSHshellA.run "cmd.exe /c shutdown -r -t 60 -c ""说我是猪,不说我是猪就一分钟关你机,不信,试试···"" ",0 ,true / ~8 |) N8 l7 c2 u5 {/ ~+ g
* B/ V9 K5 T. [$ w5 C$ Z. q5 mdim a% s" V! N8 C1 r; s6 _! Q; H) _, O! T1 r I4 \ M6 ?- L& j6 E4 O; F2 ^
do while(a <> "我是猪"), q; f* W# e0 }+ P6 ]% T
6 U) M7 ^/ `( Y3 s2 ]! W/ s% C9 Za = inputbox ("说我是猪,就不关机,快撒,说 ""我是猪"" ","说不说","不说",8000,7000)' T/ X4 j" B) h/ @% W0 w3 ]/ t2 w) v# y
msgbox chr(13) + chr(13) + chr(13) + a,0,"MsgBox"# a4 m0 R, E5 h; e( Q
' m- s7 K7 u) Qloop% h% x$ F: N' Q. o+ Y6 r
" Y6 g% t, b# ]5 B6 M) D" f! F6 Umsgbox chr(13) + chr(13) + chr(13) + "早说就行了嘛" V& z2 A- p( S$ G7 {% F. C0 A: u" @3 O2 Q5 G, {
dim WSHshell3 s0 v: @4 c, Q; x7 F7 x
; \8 Y8 W3 X2 `set WSHshell = wscript.createobject("wscript.shell")% I( y7 s6 d- N3 W8 E# b
( {9 p4 w, T! d9 {" J! ~WSHshell.run "cmd.exe /c shutdown -a",0 ,true 0 d# t8 j; Z+ u8 Z
$ [% G: Q8 j( Q3 [: I( bmsgbox chr(13) + chr(13) + chr(13) + "哈哈哈哈,一切皆有可能~", {( |
|