Specifies what filenames or (and) wildcards must be excluded from operation.
Multiple exclude switches are supported.
-x[<recurse_type>]<file_ref> <recurse_type> ::= r[- | 0] <file_ref> ::= @{listfile} | !{wildcard}
See -i (Include) switch description for information about option parameters.
7z a -tzip archive.zip *.txt -x!temp.*
adds to archive archive.zip all *.txt files, except temp.* files.
a (Add), d (Delete), e (Extract), l (List), t (Test), u (Update), x (Extract with full paths)
Switches: -r (Recurse), -i (Include)