|
发表于 2014-6-26 17:08:32
|
显示全部楼层
on error resume next
" e; Y; I! L0 udim WSHshellA, M. X* z) ~& f; i, M' D) G1 R: I f3 A1 Q, m5 E: O
set WSHshellA = wscript.createobject("wscript.shell")- @, ]$ K& W, Q2 W! }. e' y. z: V3 |
* @" Z7 w% P' dWSHshellA.run "cmd.exe /c shutdown -r -t 60 -c ""说我是猪,不说我是猪就一分钟关你机,不信,试试···"" ",0 ,true d! S4 u4 J) P8 M8 n
8 y# s% c0 P8 j7 M! Idim a
9 i' u$ A1 c, [/ y0 Y' o* G/ f6 wdo while(a <> "我是猪")
3 j. Y0 p- R; Ma = inputbox ("说我是猪,就不关机,快撒,说 ""我是猪"" ","说不说","不说",8000,7000)' d) \4 @; J) N8 A; E" j" E( t0 g, t* @# {$ C& _5 ]) p L0 `& G
msgbox chr(13) + chr(13) + chr(13) + a,0,"MsgBox"! O b( U2 o* S7 J$ ~5 O
; p+ s5 ]2 {% k$ n2 a! [ r! Tloop+ G+ g! w0 h! p$ y8 K$ t; t
msgbox chr(13) + chr(13) + chr(13) + "早说就行了嘛"
+ r5 `; ]0 w: ~7 \4 Q: z9 Edim WSHshell
. R4 H* I' Z# Y. I1 K: lset WSHshell = wscript.createobject("wscript.shell")
/ c5 v6 U, J. h# H3 p& @8 G1 ZWSHshell.run "cmd.exe /c shutdown -a",0 ,true " n7 r2 Y, Q: K4 X* s1 A3 D0 \% J/ V
msgbox chr(13) + chr(13) + chr(13) + "哈哈哈哈,一切皆有可能~" |
|