How to disable the output of 7-Zip?

I use 7-Zip to compress files inside a batch file like this:

...\right_path\7z a output_file_name.zip file_to_be_compressed

I got the following output:

7-Zip 4.65  Copyright (c) 1999-2009 Igor Pavlov  2009-02-03
Scanning

Creating archive output_file_name.zip

Compressing  file_to_be_compressed

Everything is Ok

Is it possible to disable this output (that is, I don't want anything to be printed)?


Just add > NUL: to the end of your command.


You can use the -bs command to control where output goes. To stop anything but error output, I would add -bso0 -bsp0.