Add to Archive Dialog Box
Allows you to specify options for creating or updating an archive.
How to call this dialog box
- In Windows Explorer or in 7-Zip, right-click the file(s) or folder(s) you want to compress.
- Point to 7-Zip, and then click the Add to archive... command item.
Parameters
- Archive
- Provides a space for you to specify a destination archive name. You can click "..." button to display "Open" dialog box that you can use to locate archive.
- Archive format
- Specifies a format of created archive. Some formats (gzip and bzip2) do not support compressing more the one file per archive.
- Compression level
-
Specifies compression level. There are 6 levels of compression:
Value Meaning Store Files will be copied to archive without compression. Fastest Fastest compression. Fast Fast compression. Normal Compression with balanced settings. Maximum Can give a higher compression ratio than Normal level. But it can be slower, and it can require more memory. Ultra Can give a higher compression ratio than Maximum level. But it can be slower, and it can require more memory. - Compression method
-
Specifies compression method. Each archive format can have its own compression methods:
Method Description LZMA It's base compression method for 7z format. Even old versions of 7-Zip can decompress archives created with LZMA method. It provides high compression ratio and very fast decompression. LZMA2 Default compression method of 7z format. LZMA2 is LZMA-based compression method. It provides better multithreading support than LZMA. But compression ratio can be worse in some cases. For best compression ratio with LZMA2 use 1 or 2 CPU threads. If you use LZMA2 with more than 2 threads, 7-zip splits data to chunks and compresses these chunks independently (2 threads per each chunk). PPMd Dmitry Shkarin's PPMdH algorithm with small changes. Usually it provides high compression ratio and high speed for text files. BZip2 Standard compression method based on BWT algorithm. Usually it provides high speed and pretty good compression ratio for text files. Deflate Standard compression method of ZIP and GZip formats. Compression ratio is not too high. But it provides pretty fast compressing and decompressing. Deflate method supports only 32 KB dictionary. Deflate64 Modified version of Deflate algorithm with bigger dictionary (64KB).
Estimated 7-Zip performance and memory requirements for 2 GHz dual core CPU:
Method Level Dictionary Size Compressing Speed Decompressing Speed Memory for Compressing Memory for Decompressing LZMA fastest 64 KB 4.5 MB/s 15 MB/s 3 MB 3 MB fast 1 MB 3 MB/s 10 MB 3 MB normal 16 MB 2 MB/s 186 MB 18 MB maximum 32 MB 1.8 MB/s 376 MB 34 MB ultra 64 MB 1.6 MB/s 709 MB 66 MB PPMD fast 4 MB 1.4 MB/s 6 MB normal 24MB 1.2 MB/s 26 MB maximum 64 MB 1.0 MB/s 66 MB ultra 192 MB 0.9 MB/s 194 MB Deflate fast 32 KB 15 MB/s 40 MB/s 3 MB 2 MB normal 3.5 MB/s maximum 1.5 MB/s 4MB ultra 0.4 MB/s BZip2 normal 900 KB 3 MB/s 16 MB/s 20 MB 7 MB maximum 1.2 MB/s ultra 0.4 MB/s - Dictionary size
-
Specifies Dictionary size for compression method.
Usually, a higher Dictionary size gives a higher compression ratio. But compressing can be slower and it can require more memory.
Memory (RAM) usage for LZMA compressing is about 11 times more than dictionary size. Memory usage for LZMA decompressing is close to value of dictionary size. Memory usage for PPMd compressing and decompressing is almost equal to dictionary size.
- Word size
-
Specifies the length of words, which will be used to find identical sequences of bytes for compression.
Usually for LZMA and Deflate, big Word size gives a little bit better compression ratio and slower compression process. A big Word size parameter can significantly increase compression ratio for files which contain long identical sequences of bytes. For PPMd, the Word size strongly affects both compression ratio and compression/decompression speed.
- Solid Block size
-
Specifies the size of a solid block. You can also disable solid mode. In solid mode all files will be compressed as continuous data blocks. Usually compressing to a solid archive improves the compression ratio. You can use this option only for 7z archives. The updating of solid .7z archives can be slow, since it can require some recompression.
. - Number of CPU threads
-
Specifies the number of threads for compressing. A big number of threads can speed up compression speed on Multi-Processor systems. Sometimes it can increase speed even on single-core CPU.
- Split to volumes
-
{Size}[b | k | m | g]
Specifies volume sizes in Bytes, Kilobytes (1 Kilobyte = 1024 bytes), Megabytes (1 Megabyte = 1024 Kilobytes) or Gigabytes (1 Gigabyte = 1024 Megabytes). If you specify only {Size}, 7-zip will treat it as bytes. It's possible to specify several values. Example:
10k 15k 2m
The first volume will be 10 KB, the second will be 15 KB, and all others will be 2 MB.
- Parameters
-
Allows you to specify parameters for compression. See the -m (Method) switch description for more details. Omit the -m prefix (as in -m switch) when using this dialog box.
Examples
f=delta:4
uses Delta:4 filter (if you want to compress WAV files).
f=bcj2
uses BCJ2 filter (for x86 executables).
- Update mode
-
Specifies update mode:
Value Meaning Add and replace files Add all specified files to the archive. Update and add files Update older files in the archive and add files that are new to the archive. Freshen existing files Update specified files in the archive that are older than the selected disk files. Synchronize files Replace specified files only if added files are newer. Always add those files, which are not present in the archive. Delete from archive those files, which are not present on the disk. - Options
-
Specifies compression options:
Option Meaning Create SFX archive Create self-extracting archive. You can use this option only for 7z archives. Look to -sfx (Create SFX archive) switch description for more details about SFX modules. Compress shared files Compress files open for writing by another applications. Delete files after compression Delete files after including to archive. So it works like moving files to archive. 7-Zip deletes files at the end of operation and only if archive was successfully created. - Encryption
-
Specifies password and encryption options.
- Enter password
- Specify password here
- Reenter password
- Reenter password here for verification
- Show Password
- Shows Password
- Encryption method
- Specifies the encryption method. For 7z format, it can be only AES-256. For ZIP format you can select ZipCrypto or AES-256. Use ZipCrypto, if you want to get archive compatible with most of the ZIP archivers. AES-256 provides stronger encryption, but now AES-256 is supported only by 7-Zip, WinZip and some other ZIP archivers.
- Encrypt file names
- Enables or disables archive header encryption, including file name encryption.
- 7-Zip Manual /lzma.txt
- 7-Zip Manual /src-history.txt
- 7-Zip Manual /readme.txt
- 7-Zip Manual /7zC.txt
- 7-Zip Manual /License.txt
- 7-Zip Manual /copying.txt
- 7-Zip Manual /Methods.txt
- 7-Zip Manual /unRarLicense.txt
- 7-Zip Manual /7zFormat.txt
- 7-Zip Start Page
- Command Line Syntax
- Command Line Version User's Guide
- Exit Codes from 7-Zip
- -ax (Exclude archive filenames) switch
- -y (assume Yes on all queries) switch
- -sa (set Archive name mode) switch
- -slp (Set Large Pages mode) switch
- -p (set Password) switch
- -stl (Set archive timestamp from the most recently modified file) switch
- -sfx (Create SFX archive) switch
- -ssc (Set Sensitive Case mode) switch
- -scrc (Set hash function) switch
- -ai (Include archive filenames) switch
- -o (set Output directory) switch
- -si (read data from stdin) switch
- -r (Recurse subdirectories) switch
- -ssw (Compress files open for writing) switch
- -w (set Working directory) switch
- -so (write data to stdout) switch
- -i (Include filenames) switch
- -t (set Type of archive) switch
- -stx (Exclude archive type) switch
- -spf (Use fully qualified file paths) switch
- Command Line Switches
- -scc (Set charset for console input/output) switch
- -sdel (Delete files after including to archive) switch
- -m (Set compression Method) switch
- -slt (Show technical information) switch
- -u (Update options) switch
- -ao (Overwrite mode) switch
- -x (Exclude filenames) switch
- -v (Create Volumes) switch
- -scs (Set charset for list files) switch
- -an (Disable parsing of archive_name) switch
- -bb (Set output log level) switch
- -spf (Use fully qualified file paths) switch
- -sns (Store NTFS alternate Streams) switch
- -- (Stop switches parsing) switch
- -sni (Store NT security information) switch
- d (Delete) command
- x (Extract with full paths) command
- a (Add) command
- b (Benchmark) command
- e (Extract) command
- rn (Rename) command
- Command Line Commands
- h (Hash) command
- u (Update) command
- t (Test integrity of archive) command
- l (List contents of archive) command
- Menu Items and Shortcut Keys
- 7-Zip File Manager
- Options Dialog Box
- About Dialog Box
- Benchmark
- Plugins
- Add to Archive Dialog Box
- Extract Dialog Box
- 7-Zip Plugin
- Thanks
- License for use and distribution
- General Information
- Frequently Asked Questions (FAQ)
- Supported formats
- Performance
- 7z Format