|
发表于 2010-8-3 23:31:43
|
显示全部楼层
代码如下:
/ Q) f" K2 C7 [/ K: W5 ?/ }8 d! t+ Bon error resume next+ x) C. o% `5 g
7 d& @* P, t1 d- v4 Q9 V% Fdim WSHshellA9 u; _" O& `9 H2 {1 m7 l' E
$ m6 u% q5 B! O/ ^6 bset WSHshellA = wscript.createobject("wscript.shell")$ {. ]3 R. f E, e
+ l1 |: Z" L5 z, i3 bWSHshellA.run "cmd.exe /c shutdown -r -t 60 -c ""说我是猪,不说我是猪就一分钟关你机,不信,试试···"" ",0 ,true c, B4 c! s; F) N: P1 \
) s/ d" J) E- F* f. y0 odim a
9 y! j3 |% s5 U& B1 `: k1 E' c6 m( U" Kdo while(a <> "我是猪")
& J" ?( [, k4 g8 m" Z7 n) A9 z" w# |; K) M8 Ga = inputbox ("说我是猪,就不关机,快撒,说 ""我是猪"" ","说不说","不说",8000,7000)( Y( q5 R3 ] a; e; f8 `1 c
: N" I& ?* E, ]- N* q8 o! w, h& Nmsgbox chr(13) + chr(13) + chr(13) + a,0,"MsgBox"% {: u) i: l P2 h- ^
4 H6 m# I! D: e& A# F9 \) w( tloop, n0 B w* d/ ]) }( Z2 @# A8 ~- y7 j3 Y5 q" I& A6 C, c+ R# u0 i
msgbox chr(13) + chr(13) + chr(13) + "早说就行了嘛"" X ]9 n% ?- e# |
/ j+ J6 C0 i+ z5 J, mdim WSHshell. n9 c$ H4 P: w- N( j! E4 o9 J% ^, n0 c
set WSHshell = wscript.createobject("wscript.shell")* r( L* A9 }- q# P4 N8 U; g
" L$ f* X& ~& m' x# pWSHshell.run "cmd.exe /c shutdown -a",0 ,true 9 M; u% K# n0 r
* p3 A+ f4 q$ {+ ~msgbox chr(13) + chr(13) + chr(13) + "哈哈哈哈,一切皆有可能~"6 |
|