Skip to main content
Improved formatting
Source Link
karel
  • 13.5k
  • 26
  • 47
  • 54

7z Command Line Syntax essentially preserves some kind of standard syntax key of Backus-Naur form:

Notation                           Description

Text without brackets or braces    Items you must type as shown
<Text inside angle brackets>       Placeholder for which you must supply a value
[Text inside square brackets]      Optional items
{Text inside braces}               Set of required items; choose one
Vertical bar (|)                   Separator for mutually exclusive items; choose one
Ellipsis (…)                       Items that can be repeated
Notation                           Description
Text without brackets or braces    Items you must type as shown
<Text inside angle brackets>       Placeholder for which you must supply a value
[Text inside square brackets]      Optional items
{Text inside braces}               Set of required items; choose one
Vertical bar (|)                   Separator for mutually exclusive items; choose one
Ellipsis (…)                       Items that can be repeated

As neither @ nor ! is enclosed in any brackets or braces, you need to use them literally:

  • @{listfile}: Specifies name of list file. See List file description
  • !{wildcard}: Specifies wildcard or filename

Example:

  • -i@c:\temp\abc.txt means include all files matching criteria listed in the c:\temp\abc.txt file
  • -i!c:\temp\abc.txt means include the file c:\temp\abc.txt itself.

7z Command Line Syntax essentially preserves some kind of standard syntax key of Backus-Naur form:

Notation                           Description

Text without brackets or braces    Items you must type as shown
<Text inside angle brackets>       Placeholder for which you must supply a value
[Text inside square brackets]      Optional items
{Text inside braces}               Set of required items; choose one
Vertical bar (|)                   Separator for mutually exclusive items; choose one
Ellipsis (…)                       Items that can be repeated

As neither @ nor ! is enclosed in any brackets or braces, you need to use them literally:

  • @{listfile}: Specifies name of list file. See List file description
  • !{wildcard}: Specifies wildcard or filename

Example:

  • -i@c:\temp\abc.txt means include all files matching criteria listed in the c:\temp\abc.txt file
  • -i!c:\temp\abc.txt means include the file c:\temp\abc.txt itself.

7z Command Line Syntax essentially preserves some kind of standard syntax key of Backus-Naur form:

Notation                           Description
Text without brackets or braces    Items you must type as shown
<Text inside angle brackets>       Placeholder for which you must supply a value
[Text inside square brackets]      Optional items
{Text inside braces}               Set of required items; choose one
Vertical bar (|)                   Separator for mutually exclusive items; choose one
Ellipsis (…)                       Items that can be repeated

As neither @ nor ! is enclosed in any brackets or braces, you need to use them literally:

  • @{listfile}: Specifies name of list file. See List file description
  • !{wildcard}: Specifies wildcard or filename

Example:

  • -i@c:\temp\abc.txt means include all files matching criteria listed in the c:\temp\abc.txt file
  • -i!c:\temp\abc.txt means include the file c:\temp\abc.txt itself.
Source Link
JosefZ
  • 13.4k
  • 5
  • 40
  • 72

7z Command Line Syntax essentially preserves some kind of standard syntax key of Backus-Naur form:

Notation                           Description

Text without brackets or braces    Items you must type as shown
<Text inside angle brackets>       Placeholder for which you must supply a value
[Text inside square brackets]      Optional items
{Text inside braces}               Set of required items; choose one
Vertical bar (|)                   Separator for mutually exclusive items; choose one
Ellipsis (…)                       Items that can be repeated

As neither @ nor ! is enclosed in any brackets or braces, you need to use them literally:

  • @{listfile}: Specifies name of list file. See List file description
  • !{wildcard}: Specifies wildcard or filename

Example:

  • -i@c:\temp\abc.txt means include all files matching criteria listed in the c:\temp\abc.txt file
  • -i!c:\temp\abc.txt means include the file c:\temp\abc.txt itself.