问题
-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