如何隐藏7Zip的命令行中的错误信息? [英] How to hide error messages in 7Zip command line?
本文介绍了如何隐藏7Zip的命令行中的错误信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
-inul
从在WinRAR命令行来了命令prevents错误对话框。是否有任何7Gz.exe等效的命令?
-inul
command prevents error-box from coming up in WinRar command line. Is there any equivalent command for 7Gz.exe?
推荐答案
的7-Zip
的所有消息写入标准输出
,包括错误和警告消息。这意味着你可以通过标准输出重定向到一个文件中收集所有从它的输出。
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.
像下面将所有输出(包括标准错误)重定向到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屋!
查看全文