707
|
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>-o (set Output directory) switch</TITLE>
|
|
6 <LINK href="style.css" rel="stylesheet" type="text/css">
|
|
7 </HEAD>
|
|
8
|
|
9 <BODY>
|
|
10
|
|
11 <H1>-o (set Output directory) switch</H1>
|
|
12
|
|
13 <P>Specifies a destination directory where files are to be extracted.</P>
|
|
14 <P>This switch can be used only with extraction commands.</P>
|
|
15
|
|
16 <H4>Syntax</H4>
|
|
17
|
|
18 <PRE class="syntax">
|
|
19 -o{dir_path}
|
|
20 </PRE>
|
|
21
|
|
22 <DL>
|
|
23 <DT>{dir_path}</DT>
|
|
24 <DD>This is the destination directory path. It's not required to end with a backslash.
|
|
25 If you specify <B>*</B> in {dir_path}, 7-Zip substitutes that * character to archive name.</DD>
|
|
26 </DL>
|
|
27
|
|
28
|
|
29 <H4>Example</H4>
|
|
30
|
|
31 <PRE class="example">
|
|
32 7z x archive.zip -oc:\Doc
|
|
33 </PRE>
|
|
34
|
|
35 <P>extracts all files from the <SPAN class="filename">archive.zip</SPAN> archive
|
|
36 to the <SPAN class="filename">c:\Doc</SPAN> directory.</P>
|
|
37
|
|
38 <PRE class="example">
|
|
39 7z x *.zip -o*
|
|
40 </PRE>
|
|
41
|
|
42 <P>extracts all <SPAN class="filename">*.zip</SPAN> archives to subfolders
|
|
43 with names of these archives.</P>
|
|
44
|
|
45 <H4>Commands that can be used with this switch</H4>
|
|
46
|
|
47 <P>
|
|
48 <A href="../commands/extract.htm">e (Extract)</A>,
|
|
49 <A href="../commands/extract_full.htm">x (Extract with full paths)</A>
|
|
50 </P>
|
|
51
|
|
52 </BODY>
|
|
53 </HTML>
|