1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
\r
4 <META http-equiv="Content-Type" content="text/html; charset=Windows-1252">
\r
5 <TITLE>-o (set Output directory) switch</TITLE>
\r
6 <LINK href="style.css" rel="stylesheet" type="text/css">
\r
11 <H1>-o (set Output directory) switch</H1>
\r
13 <P>Specifies a destination directory where files are to be extracted.</P>
\r
14 <P>This switch can be used only with extraction commands.</P>
\r
18 <PRE class="syntax">
\r
24 <DD>This is the destination directory path. It's not required to end with a backslash.</DD>
\r
30 <PRE class="example">
\r
31 7z x archive.zip -oc:\Doc
\r
34 <P>extracts all files from the <SPAN class="filename">archive.zip</SPAN> archive
\r
35 to the <SPAN class="filename">c:\Doc</SPAN> directory.</P>
\r
37 <PRE class="example">
\r
41 <P>extracts all <SPAN class="filename">*.zip</SPAN> archives to subfolders
\r
42 with names of these archives.</P>
\r
44 <H4>Commands that can be used with this switch</H4>
\r
47 <A href="../commands/extract.htm">e (Extract)</A>,
\r
48 <A href="../commands/extract_full.htm">x (Extract with full paths)</A>
\r