返回列表 发帖
(call myCommand.bat&Set ExitCode=!ErrorLevel!)|mtee /d /t /+ sysLog.log
这样呢?

TOP

call myCommand.bat&>$tmp.txt Echo;!ErrorLevel!|mtee /d /t /+ sysLog.log
Set /P ExitCode=<$tmp.txtCOPY
那就这样吧

TOP

回复 6# CrLf


    请教一下在这里交换句柄指向的意义......表示这么高深的代码全然看不懂

TOP

回复 25# shootman2


    你得把问题说完整啊...
在myCommand.bat的开头加上@echo off 2>&1 3>&1
这样输出就都正常了

TOP

返回列表