How to hide error messages in 7Zip command line?

为君一笑 提交于 2019-12-11 08:48:24

问题


-inul command prevents error-box from coming up in WinRar command line. Is there any equivalent command for 7Gz.exe?


回答1:


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.

A command like the following will redirect all output (including from stderr) to Log.txt:

7za a Test.7z *.* >Log.txt 2>&1


来源:https://stackoverflow.com/questions/21118929/how-to-hide-error-messages-in-7zip-command-line

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