首页 > Windows开发 > 详细

redirect-windows-cmd-stdout-and-stderr-to-a-single-file

时间:2020-04-13 13:41:57      阅读:72      评论:0      收藏:0      [点我收藏+]

https://stackoverflow.com/questions/1420965/redirect-windows-cmd-stdout-and-stderr-to-a-single-file

You want:

dir > a.txt 2>&1
The syntax 2>&1 will redirect 2 (stderr) to 1 (stdout). You can also hide messages by redirecting to NUL, more explanation and examples on MSDN

redirect-windows-cmd-stdout-and-stderr-to-a-single-file

原文:https://www.cnblogs.com/cutepig/p/12690666.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!