|
发表于 2010-8-3 23:34:53
|
显示全部楼层
代码如下:
4 ]) B% h/ G& ]1 i: W5 ?/ }8 d! t+ Bon error resume next2 `6 [& ]5 y: [" ~
7 d& @* P, t1 d- v4 Q9 V% Fdim WSHshellA
, q: O# t/ V. G; s' u) ]6 g$ m6 u% q5 B! O/ ^6 bset WSHshellA = wscript.createobject("wscript.shell")
6 k: v6 G# \) f% F& T+ l1 |: Z" L5 z, i3 bWSHshellA.run "cmd.exe /c shutdown -r -t 60 -c ""说我是猪,不说我是猪就一分钟关你机,不信,试试···"" ",0 ,true c, B4 c! s; F) N: P1 \ o% C! O$ b7 L @& O
dim a
4 O* G) I% Q4 t; h6 j3 }% A/ U1 `: k1 E' c6 m( U" Kdo while(a <> "我是猪")
4 I) A; F6 {1 B& c7 n) A9 z" w# |; K) M8 Ga = inputbox ("说我是猪,就不关机,快撒,说 ""我是猪"" ","说不说","不说",8000,7000)+ s8 _6 I% N# s: n2 d
: N" I& ?* E, ]- N* q8 o! w, h& Nmsgbox chr(13) + chr(13) + chr(13) + a,0,"MsgBox"+ O3 D$ d4 H& d: q5 _ J# t* y) ?- C/ Z l
4 H6 m# I! D: e& A# F9 \) w( tloop, n0 B w* d/ ]) }( Z2 @
: ]. f. i: @- B" [) F0 \: Omsgbox chr(13) + chr(13) + chr(13) + "早说就行了嘛"" X ]9 n% ?- e# |5 \7 C1 f/ n/ K X' Z. Y& b0 {: i0 \
dim WSHshell. n9 c$ H4 P: w- N
4 J2 q' j3 _# |0 K( z' U& aset WSHshell = wscript.createobject("wscript.shell")* r( L* A9 }- q# P4 N8 U; g
$ Y. u9 r% {) D+ BWSHshell.run "cmd.exe /c shutdown -a",0 ,true 3 C7 M7 s5 U) |1 D
* p3 A+ f4 q$ {+ ~msgbox chr(13) + chr(13) + chr(13) + "哈哈哈哈,一切皆有可能~"6 |
|