| set ws=createobject("wscript.shell") | | set pro=ws.exec("wscript 1.vbs") | | do | | msgbox pro.stdout.atendofstream | | if not pro.stdout.atendofstream then | | msgbox pro.stdout.readall | | end if | | if not pro.stderr.atendofstream then | | msgbox pro.stderr.readall | | end if | | if pro.stdout.atendofstream and pro.stderr.atendofstream and pro.status=0 then | | pro.stdin.writeline(inputbox("stdin")) | | end if | | loopCOPY |
1.vbs内容: | a=wscript.stdin.readline() | | wscript.stdout.writeline(123) | | wscript.stdout.write(1231)COPY |
doloop里第一句的msgbox就msgbox不出来
但是如果换成msgbox 1就可以
为什么呢
这句句子里只要带了pro.stdout.atendofstream 不管写啥都不会执行
比如我写msgbox asdfasdfbvjkxvl(pro.stdout.atendofstream) |