How to redirect stderr to null in cmd.exe

本秂侑毒 提交于 2019-11-26 07:34:41

问题


I have an application that logs a lot of noise to stderr and REALLY slows down the execution of the application. I would like to redirect that output to null. Is this possible with cmd.exe?


回答1:


Your DOS command 2> nul

Read page Using command redirection operators. Besides the "2>" construct mentioned by Tanuki Software, it lists some other useful combinations.



来源:https://stackoverflow.com/questions/4507312/how-to-redirect-stderr-to-null-in-cmd-exe

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!