我想从一个批处理文件中同时运行两个程序,并将第一个程序的输出重定向到一个文本文件中,例如:
start python 1st.py arg1 arg2 > out.txt
start 2nd.exe %1 arg2 arg3
当程序按预期运行时,所有输出将显示在stdout上。
您可能需要这样做:
start cmd /c python 1st.py arg1 arg2 ^> out.txt
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句