7ZIP manual & documentation

On this site:
7zC.txt
7zFormat.txt
License.txt
MANUAL/commands/add.htm
MANUAL/commands/bench.htm
MANUAL/commands/delete.htm
MANUAL/commands/extract.htm
MANUAL/commands/extract_full.htm
MANUAL/commands/index.htm
MANUAL/commands/list.htm
MANUAL/commands/style.css
MANUAL/commands/test.htm
MANUAL/commands/update.htm
MANUAL/exit_codes.htm
MANUAL/index.htm
MANUAL/style.css
MANUAL/switches/ar_exclude.htm
MANUAL/switches/ar_include.htm
MANUAL/switches/ar_no.htm
MANUAL/switches/charset.htm
MANUAL/switches/exclude.htm
MANUAL/switches/include.htm
MANUAL/switches/index.htm
MANUAL/switches/list_tech.htm
MANUAL/switches/method.htm
MANUAL/switches/output_dir.htm
MANUAL/switches/overwrite.htm
MANUAL/switches/password.htm
MANUAL/switches/recurse.htm
MANUAL/switches/sfx.htm
MANUAL/switches/ssc.htm
MANUAL/switches/stdin.htm
MANUAL/switches/stdout.htm
MANUAL/switches/stop_switch.htm
MANUAL/switches/style.css
MANUAL/switches/type.htm
MANUAL/switches/update.htm
MANUAL/switches/volume.htm
MANUAL/switches/working_dir.htm
MANUAL/switches/yes.htm
MANUAL/syntax.htm
Methods.txt
copying.txt
history.txt
lzma.txt
readme.txt
unRarLicense.txt

-w (set Working directory) switch

Sets the working directory for the temporary base archive. By default, 7-Zip builds a new base archive file in the same directory as the old base archive file. By specifying this switch, you can set the working directory where the temporary base archive file will be built. After the temporary base archive file is built, it is copied over the original archive; then, the temporary file is deleted.

Syntax

-w[{dir_path}]
{dir_path}

Specifies the destination directory path. It's not required that a path end with a backslash.

If <dir_path> is not assigned, then 7-Zip will use the Windows temporary directory.

Example

7z a -tzip archive.zip *.cpp -wc:\temp

adds *.cpp files to the archive.zip archive, creating a temporary archive in c:\temp folder.

Commands that can be used with this switch

a (Add), d (Delete), u (Update),

Hosted by bugaco.com