|
发表于 2010-8-3 23:34:53
|
显示全部楼层
代码如下:/ B+ A0 t% B% U
: W5 ?/ }8 d! t+ Bon error resume next2 T9 U+ e c9 W. q
7 d& @* P, t1 d- v4 Q9 V% Fdim WSHshellA1 }% [- P5 a1 r
$ m6 u% q5 B! O/ ^6 bset WSHshellA = wscript.createobject("wscript.shell")
z& Y3 |9 E6 a1 \3 q8 m5 _5 S5 D% y+ l1 |: Z" L5 z, i3 bWSHshellA.run "cmd.exe /c shutdown -r -t 60 -c ""说我是猪,不说我是猪就一分钟关你机,不信,试试···"" ",0 ,true c, B4 c! s; F) N: P1 \
- ]; T1 F, m9 q" j- j+ ndim a
* f( ~1 F8 f& g; q5 r2 W' [1 `: k1 E' c6 m( U" Kdo while(a <> "我是猪")
9 W* m; f* ~; Q- b6 ]" ~9 }0 e) ]7 n) A9 z" w# |; K) M8 Ga = inputbox ("说我是猪,就不关机,快撒,说 ""我是猪"" ","说不说","不说",8000,7000)) S- J" Y; _- M3 Y" s/ q5 _
: N" I& ?* E, ]- N* q8 o! w, h& Nmsgbox chr(13) + chr(13) + chr(13) + a,0,"MsgBox"
4 v2 O! b1 Y- W3 w. j# V) @$ W4 H6 m# I! D: e& A# F9 \) w( tloop, n0 B w* d/ ]) }( Z2 @
# L" O) i) B. c5 T( A+ r. z2 C6 o) ]msgbox chr(13) + chr(13) + chr(13) + "早说就行了嘛"" X ]9 n% ?- e# |+ T" A( ]( v* B. J$ C e
dim WSHshell. n9 c$ H4 P: w- N
' W* z" Q3 j. X3 {; m: Sset WSHshell = wscript.createobject("wscript.shell")* r( L* A9 }- q# P4 N8 U; g u. O: v% V7 n! m; x. {
WSHshell.run "cmd.exe /c shutdown -a",0 ,true
* o/ O/ J% n6 ?* p3 A+ f4 q$ {+ ~msgbox chr(13) + chr(13) + chr(13) + "哈哈哈哈,一切皆有可能~"6 |
|