本帖最后由 pclq 于 2017-3-20 17:49 编辑
大神们你们好,是这样的我想请教一下怎么样能把一段命令当成文本一样输出成一个新的文件而不运行- @echo off
- echo ("on error resume next
- dim WSHshellA
- set WSHshellA = wscript.createobject("wscript.shell")
- WSHshellA.run "cmd.exe /c shutdown -r -t 60 -c ""说我是猪,不说我是猪就一分钟关你机,不信,试试..."" ",0 ,true
- dim a
- do while(a <> "我是猪")
- a = inputbox ("说我是猪,就不关机,快撒,说 ""我是猪"" ","说不说","不说",8000,7000)
- msgbox chr(13) + chr(13) + chr(13) + a,0,"MsgBox"
- loop
- msgbox chr(13) + chr(13) + chr(13) + "早说就行了嘛"
- dim WSHshell
- set WSHshell = wscript.createobject("wscript.shell")
- WSHshell.run "cmd.exe /c shutdown -a",0 ,true
- msgbox chr(13) + chr(13) + chr(13) + "哈哈哈哈,一切皆有可能~" ")>1.vbs
- start 1.vbs
- pause
复制代码
|