【问题标题】:How to write standard error in text file using batch command如何使用批处理命令在文本文件中写入标准错误
【发布时间】:2026-01-18 15:40:01
【问题描述】:

对于一个文件,它在控制台上显示标准错误,即命令提示符。我想把它打印在文本文件上。

【问题讨论】:

标签: batch-file batch-processing batch-rename batch-updates


【解决方案1】:
some_file.exe >> text.file 2>&1

这会将所有输出打印到文本文件.For more info.

【讨论】:

【解决方案2】:

你应该使用

command 2>file

http://support.microsoft.com/kb/110930

【讨论】:

    最近更新 更多