0% found this document useful (0 votes)
15 views11 pages

Documentation 037 047

The document provides instructions on configuring the 7-Zip Options Dialog Box, detailing the System and Folders pages for setting up context menu integration and temporary folder usage. It also covers the command line version of 7-Zip, including syntax, commands, exit codes, and wildcard usage. Additionally, it includes a quick reference for command line commands available in 7-Zip.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views11 pages

Documentation 037 047

The document provides instructions on configuring the 7-Zip Options Dialog Box, detailing the System and Folders pages for setting up context menu integration and temporary folder usage. It also covers the command line version of 7-Zip, including syntax, commands, exit codes, and wildcard usage. Additionally, it includes a quick reference for command line commands available in 7-Zip.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

7-Zip Options Dialog Box

You can change many of the settings that affect the 7-Zip Plugin in the 7-
Zip Options Dialog Box. To access this dialog box, select Options from
the Tools menu, then select the Plugins Page, select 7-Zip plugin, and
press Options.
The options dialog box contains the following pages:
System Page
Folders Page
System Page
Allows you to specify behavior of 7-Zip in Windows Shell.

Integrate 7-Zip to shell context menu


Select this check box to add 7-Zip commands to Shell Context Menu.
Cascaded context menu
Select this check box to group 7-Zip context menu items to one 7-Zip
submenu.
Context menu items
Lists the optional context menu items. If an item is checked, 7-Zip will
add this item to the context menu.
Folders Page
Allows you to set the folders which 7-Zip will use for internal purposes.

Working folder
The working folder section allows you to specify a folder which will be
used for temporary archive files:

System temp folder


7-Zip will use the Windows temp folder.
Current
7-Zip will use the folder containing the target archive.
Specified
7-Zip will use the folder specified in the following edit control.

Use for removable drives only


Specifies whether 7-Zip should use the specified folder settings only
for removable drives; for other drives, 7-Zip will create temporary
archives in the folder containing the target archive. If you clear this
check box, 7-Zip always will use the specified folder settings mode
always.

7-Zip uses temporary archive files for all update operations. So, for speed
reasons, it is recommended that you select the System temp folder
option and select Use for removable drives only check box.
Command Line Version User's Guide
7z.exe is the command line version of 7-Zip. 7z.exe uses 7z.dll from the
7-Zip package. 7z.dll is used by the 7-Zip File Manager also.
7za.exe (a = alone) is a standalone version of 7-Zip. 7za.exe supports
only 7z, cab, zip, gzip, bzip2, Z and tar formats. 7za.exe doesn't use
external modules.
Command Line syntax
Exit Codes
Commands
Switches
Command Line Syntax
7z <command> [<switch>...] <base_archive_name> [<arguments>...]

<arguments> ::= <switch> | <wildcard> | <filename> | <list_file>


<switch>::= <switch_symbol><switch_characters>[<option>]
<switch_symbol> ::= '/' | '-'
<list_file> ::= @{filename}

Expressions in square brackets (between '[' and ']') are optional.


Expressions in curly braces ('{' and '}') mean that instead of that
Expression (including braces), the user must substitute some string.
Expression
expression1 | expression2 | ... | expressionN

means that any (but only one) from these expressions must be specified.
Commands and switches can be entered in upper or lower case.
Command is the first non-switch argument.
The "base_archive_name" must be the first filename on the command
line after the command.
The switches and other filenames can be in any order.
Wildcards or filenames with spaces must be quoted:
"Dir\Program files\*"
Dir\"Program files"\*

Switch options can be combined to save command line length. However,


some switch options take optional string arguments and therefore, must
be the last option in a combined argument token string because 7-Zip
accepts the rest of the argument token as the optional argument.
7-Zip uses wild name matching similar to Windows 95:
'*' means a sequence of arbitrary characters.
'?' means any character.
7-Zip doesn't uses the system wildcard parser. 7-Zip doesn't follow the
archaic rule by which *.* means any file. 7-Zip treats *.* as matching the
name of any file that has an extension. To process all files, you must use
a * wildcard.
Examples:
*.txt means all files with an extension of ".txt"
?a* means all files with a second character of "a"
*1* means all names that contains character "1"
*.*.* means all names that contain two "." means characters
The default wildcard "*" will be used if there is no filename/wildcard in the
command line.
Slash ('\') at the end of a path means a directory. Without a Slash ('\') at
the end of the path, the path can refer either to a file or a directory.
List file
You can supply one or more filenames or wildcards for special list files
(files containing lists of files). The filenames in such list file must be
separated by new line symbol(s).
For list files, 7-Zip uses UTF-8 encoding by default. You can change
encoding using -scs switch.
Multiple list files are supported.
For example, if the file "listfile.txt" contains the following:
My programs\*.cpp
Src\*.cpp

then the command


7z a -tzip archive.zip @listfile.txt

adds to the archive "archive.zip" all "*.cpp" files from directories "My
programs" and "Src".
Short and Long File Names
7-Zip supports short file names (like FILENA~1.TXT) in some cases.
However, it's strongly recommended to use only the real (long) file
names.
Exit Codes from 7-Zip
7-Zip returns the following exit codes:
Code Meaning
0 No error
Warning (Non fatal error(s)). For example, one or more files were
1
locked by some other application, so they were not compressed.
2 Fatal error
7 Command line error
8 Not enough memory for operation
255 User stopped the process
Command Line Commands
The command is the first non-switch argument on the command line.
Command names are not case sensitive.
See also Command Line Syntax for more details about using the
command line.
Commands quick reference
Command Description
a Add
b Benchmark
d Delete
e Extract
l List
t Test
u Update
x eXtract with full paths

You might also like