如何在 cmd.exe 中将 stderr 重定向到 null [英] How to redirect stderr to null in cmd.exe

查看:69
本文介绍了如何在 cmd.exe 中将 stderr 重定向到 null的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序将大量噪音记录到标准错误中,并且确实减慢了应用程序的执行速度.我想将该输出重定向到 null.这可以通过 cmd.exe 实现吗?

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?

推荐答案

Your DOS command 2> nul

阅读页面使用命令重定向操作符.除了 Tanuki Software 提到的2>"结构外,它还列出了一些其他有用的组合.

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

这篇关于如何在 cmd.exe 中将 stderr 重定向到 null的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆