Switch Syntax
Switches start with- (dash) or / (forward slash) on Windows:
General Switches
Output directory for extracted files
Set password for archive
Recurse subdirectories
Set archive type (7z, zip, tar, gzip, etc.)
Exclude files by pattern
Assume Yes on all queries
Compression Switches
Set compression level (0-9)
-mx=0- Copy mode (no compression)-mx=1- Fastest compression-mx=5- Normal compression (default)-mx=7- Maximum compression-mx=9- Ultra compression
Set compression method
-m0=LZMA2- Use LZMA2-m0=LZMA- Use LZMA-m0=PPMd- Use PPMd-m0=BZip2- Use BZip2
Set dictionary size (e.g., 16m, 32m, 64m)
Set number of fast bytes (5-273) for LZMA
Set solid archive mode (on/off or block size)
Set number of CPU threads
Update Switches
Update options
-u-- Disable archive update-up0q0r2x2y2z0w2- Complex update mode
Set working directory
Archive Handling
Create volumes (multi-part archives)
Delete files after compression
Create self-extracting archive
Compress locked files
Overwrite Mode
Overwrite mode for extraction
-aoa- Overwrite all-aos- Skip existing files-aou- Auto rename-aot- Auto rename existing
Listing Options
Show technical information
Disable archiver messages
Examples
Maximum Compression
Fast Compression with Multi-threading
Password-Protected Solid Archive
Split Archive with Exclusions
Switches can be combined in any order. For switches that take values, use
= without spaces.