Command Line Switches
Syntax
<switch>::= <switch_symbol><switch_characters>[<option>] <switch_symbol> ::= '/' | '-'
On the command line, a switch consists of a switch specifier, either a dash (-) or a forward slash (/), followed by the name of the switch. Switch names cannot be abbreviated.
Some switches take an argument after the switch name. No spaces or tabs are allowed within a switch specification. Switch names are not case sensitive, but arguments can be case sensitive.
Switch can be used in any place in command line.
See also Command Line Syntax for more details about using the command line.
Switch quick reference
Other documents on this site:
- 7-Zip Manual /7zC.txt
- 7-Zip Manual /readme.txt
- 7-Zip Manual /copying.txt
- 7-Zip Manual /lzma.txt
- 7-Zip Manual /Methods.txt
- 7-Zip Manual /unRarLicense.txt
- 7-Zip Manual /License.txt
- 7-Zip Manual /src-history.txt
- 7-Zip Manual /7zFormat.txt
- 7-Zip Start Page
- Menu Items and Shortcut Keys
- 7-Zip File Manager
- Benchmark
- Options Dialog Box
- About Dialog Box
- Plugins
- Extract Dialog Box
- 7-Zip Plugin
- Add to Archive Dialog Box
- Exit Codes from 7-Zip
- Command Line Version User's Guide
- Command Line Syntax
- -y (assume Yes on all queries) switch
- -so (write data to stdout) switch
- -ai (Include archive filenames) switch
- -scc (Set charset for console input/output) switch
- -w (set Working directory) switch
- -bb (Set output log level) switch
- -sni (Store NT security information) switch
- -t (set Type of archive) switch
- -ssc (Set Sensitive Case mode) switch
- -ssw (Compress files open for writing) switch
- -stx (Exclude archive type) switch
- -si (read data from stdin) switch
- -sns (Store NTFS alternate Streams) switch
- -spf (Use fully qualified file paths) switch
- -- (Stop switches parsing) switch
- -x (Exclude filenames) switch
- Command Line Switches
- -ax (Exclude archive filenames) switch
- -r (Recurse subdirectories) switch
- -sfx (Create SFX archive) switch
- -i (Include filenames) switch
- -slp (Set Large Pages mode) switch
- -an (Disable parsing of archive_name) switch
- -stl (Set archive timestamp from the most recently modified file) switch
- -sa (set Archive name mode) switch
- -scrc (Set hash function) switch
- -ao (Overwrite mode) switch
- -o (set Output directory) switch
- -u (Update options) switch
- -m (Set compression Method) switch
- -spf (Use fully qualified file paths) switch
- -scs (Set charset for list files) switch
- -p (set Password) switch
- -slt (Show technical information) switch
- -sdel (Delete files after including to archive) switch
- -v (Create Volumes) switch
- d (Delete) command
- rn (Rename) command
- b (Benchmark) command
- l (List contents of archive) command
- e (Extract) command
- Command Line Commands
- a (Add) command
- t (Test integrity of archive) command
- u (Update) command
- h (Hash) command
- x (Extract with full paths) command
- Performance
- Thanks
- Frequently Asked Questions (FAQ)
- 7z Format
- General Information
- License for use and distribution
- Supported formats