Deb
Deb

Reputation: 5649

How to hide error messages in 7Zip command line?

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

Upvotes: 2

Views: 3249

Answers (1)

Sunny
Sunny

Reputation: 8312

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

Upvotes: 2

Related Questions