Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

7-Zip command-line switch [closed]

Tags:

7zip

Is there a 7-Zip command-line switch that prevents the filenames from echoing to the screen as they are added to the archive?

like image 712
KTLind Avatar asked Sep 18 '08 15:09

KTLind


People also ask

How do I run 7-Zip from command-line?

To begin a session, open a terminal window. Invoke the version of 7Zip you are using by entering "7z" for P7Zip (7z.exe), or "7za" for 7Zip for Windows (7za.exe) to start either the P7-Zip or 7za application prior to entering commands.

When using the unzip command What does the switch do?

Disables most of the normal user queries during 7-Zip execution. You can use this switch to suppress overwrite queries in the e (Extract) and x (Extract with full paths) commands.

What is the difference between 7z and 7za?

Differences between 7z, 7za and 7zr binaries7za(1) is a stand-alone executable that handles fewer archive formats than 7z. 7zr(1) is a stand-alone executable. It is a "light-version" of 7za that only handles 7z archives. In contrast to 7za, it cannot handle encrypted archives.


1 Answers

Not built in, but if you add

<7z command here> 2>&1 NUL

to the end of your command-line, it will redirect all the output into the null device and stops it echoing to the screen. This is the MS-DOS equivalent of

2>&1 /dev/null

in Linux and Unix systems.

like image 158
workmad3 Avatar answered Sep 21 '22 09:09

workmad3