如何在 7Zip 命令行中隐藏错误消息? [英] How to hide error messages in 7Zip command line?
本文介绍了如何在 7Zip 命令行中隐藏错误消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
-inul
命令防止错误框出现在 WinRar 命令行中.7Gz.exe 有什么等价的命令吗?
-inul
command prevents error-box from coming up in WinRar command line. Is there any equivalent command for 7Gz.exe?
推荐答案
7-Zip
将其所有消息写入 stdout
,包括错误和警告消息.这意味着您可以通过将 stdout 重定向到一个文件来收集它的所有输出.
7-Zip
writes all its messages to stdout
, including error and warning messages. This means you can collect all the output from it by redirecting stdout it to a file.
类似以下的命令会将所有输出(包括来自 stderr)重定向到 Log.txt:
A command like the following will redirect all output (including from stderr) to Log.txt:
7za a Test.7z *.* >Log.txt 2>&1
这篇关于如何在 7Zip 命令行中隐藏错误消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文