1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
4
<META http-equiv="Content-Type" content="text/html; charset=Windows-1252">
5
<TITLE>-w (set Working directory) switch</TITLE>
6
<LINK href="style.css" rel="stylesheet" type="text/css">
11
<H1>-w (set Working directory) switch</H1>
13
<P>Sets the working directory for the temporary base archive. By
14
default, 7-Zip builds a new base archive file in the same directory as the
15
old base archive file. By specifying this switch, you can set the
16
working directory where the temporary base archive file will be built.
17
After the temporary base archive file is built, it is copied over the
18
original archive; then, the temporary file is deleted.</P>
23
-w[<A class="parameter" href="#dir_path">{dir_path}</A>]
27
<DT><A name="dir_path"></A>{dir_path}</DT>
29
<P>Specifies the destination directory path. It's not required that
30
a path end with a backslash.</P>
31
<P>If <dir_path> is not assigned, then 7-Zip will use the Windows temporary directory.</P>
39
7z a -tzip archive.zip *.cpp -wc:\temp
42
<P>adds <SPAN class="filename">*.cpp</SPAN> files to the
43
<SPAN class="filename">archive.zip</SPAN> archive, creating a temporary archive
44
in <SPAN class="filename">c:\temp</SPAN> folder.</P>
46
<H4>Commands that can be used with this switch</H4>
49
<A href="../commands/add.htm">a (Add)</A>,
50
<A href="../commands/delete.htm">d (Delete)</A>,
51
<A href="../commands/update.htm">u (Update)</A>,