1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
---|
2 | <HTML>
|
---|
3 | <HEAD>
|
---|
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">
|
---|
7 | </HEAD>
|
---|
8 |
|
---|
9 | <BODY>
|
---|
10 |
|
---|
11 | <H1>-w (set Working directory) switch</H1>
|
---|
12 |
|
---|
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>
|
---|
19 |
|
---|
20 | <H4>Syntax</H4>
|
---|
21 |
|
---|
22 | <PRE class="syntax">
|
---|
23 | -w[<A class="parameter" href="#dir_path">{dir_path}</A>]
|
---|
24 | </PRE>
|
---|
25 |
|
---|
26 | <DL>
|
---|
27 | <DT><A name="dir_path"></A>{dir_path}</DT>
|
---|
28 | <DD>
|
---|
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>
|
---|
32 | </DD>
|
---|
33 | </DL>
|
---|
34 |
|
---|
35 |
|
---|
36 | <H4>Example</H4>
|
---|
37 |
|
---|
38 | <PRE class="example">
|
---|
39 | 7z a -tzip archive.zip *.cpp -wc:\temp
|
---|
40 | </PRE>
|
---|
41 |
|
---|
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>
|
---|
45 |
|
---|
46 | <H4>Commands that can be used with this switch</H4>
|
---|
47 |
|
---|
48 | <P>
|
---|
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>,
|
---|
52 | </P>
|
---|
53 |
|
---|
54 | </BODY>
|
---|
55 | </HTML>
|
---|