How to do “Files to store without compression” in 7-zip

7-zipcompression

Is there any way to selectively prevent certain file types from compression in 7-zip, like in WinRAR?

I'm trying to compress a huge folder (many gigabytes), and I don't want the already-compressed files (e.g. ZIP files) to be re-compressed — they should be stored without compression.

Best Answer

Yes, it is possible to have different compression methods for different files within the same 7-Zip archive.

Use the command line version of 7-Zip with the -m parameter to specify the method as Copy, which means no compression.

Example :

7za a -m0=Copy tmp7.7z *.txt

For more info, see -m (Set compression Method) switch.