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>e (Extract) command</TITLE>
\r
6 <LINK href="style.css" rel="stylesheet" type="text/css">
\r
11 <H1>e (Extract) command</H1>
\r
13 <P>Extracts files from an archive to the current
\r
14 directory or to the output directory. The output directory can be specified by
\r
15 <A href="../switches/output_dir.htm">-o (Set Output Directory)</A> switch.</P>
\r
17 <P>This command copies all extracted files to one directory.
\r
18 If you want extract files with full paths, you must use
\r
19 <A href="extract_full.htm">x (Extract with full paths)</A> command.
\r
21 <P>7-Zip will prompt the user before overwriting existing files unless
\r
22 the user specifies the <A href="../switches/yes.htm">-y (Assume Yes on all queries)</A>
\r
23 switch. If the user gives a <B>no</B> answer, 7-Zip will prompt for the file to be
\r
24 extracted to a new filename. Then a <B>no</B> answer skips that file; or, <B>yes</B>
\r
25 prompts for new filename.</P>
\r
27 <P>7-Zip accepts the following responses:</P>
\r
30 <TR> <TH>Answer</TH> <TH>Abbr.</TH> <TH>Action</TH> </TR>
\r
31 <TR> <TD>Yes</TD> <TD>y</TD> <TD> </TD> </TR>
\r
32 <TR> <TD>No</TD> <TD>n</TD> <TD> </TD> </TR>
\r
33 <TR> <TD>Always</TD> <TD>a</TD> <TD>Assume YES for ALL subsequent queries of the same class</TD> </TR>
\r
34 <TR> <TD>Skip</TD> <TD>s</TD> <TD>Assume NO for ALL subsequent queries of the same class</TD> </TR>
\r
35 <TR> <TD>Quit</TD> <TD>q</TD> <TD>Quit the program</TD> </TR>
\r
39 <P>Abbreviated responses are allowed.</P>
\r
43 <PRE class="example">
\r
47 <P>extracts all files from archive
\r
48 <SPAN class="filename">archive.zip</SPAN> to the current directory.</P>
\r
50 <PRE class="example">
\r
51 7z e archive.zip -oc:\soft *.cpp -r
\r
54 <P>extracts all <SPAN class="filename">*.cpp</SPAN> files from archive
\r
55 <SPAN class="filename">archive.zip</SPAN> to <SPAN class="filename">c:\soft</SPAN> folder.</P>
\r
60 <P>7-Zip doesn't uses the system wildcard parser. 7-Zip doesn't
\r
61 follow the archaic rule by which *.* means any file. 7-Zip treats
\r
62 *.* as matching the name of any file that has an extension. To process
\r
63 all files, you must use a * wildcard.</P>
\r
66 <H4>Switches that can be used with this command</H4>
\r
69 <A href="../switches/ar_include.htm">-ai (Include archives)</A><BR>
\r
70 <A href="../switches/ar_no.htm">-an (Disable parsing of archive_name)</A><BR>
\r
71 <A href="../switches/overwrite.htm">-ao (Overwrite mode)</A><BR>
\r
72 <A href="../switches/ar_exclude.htm">-ax (Exclude archives)</A><BR>
\r
73 <A href="../switches/include.htm">-i (Include)</A><BR>
\r
74 <A href="../switches/output_dir.htm">-o (Set Output Directory)</A><BR>
\r
75 <A href="../switches/password.htm">-p (Set Password)</A><BR>
\r
76 <A href="../switches/recurse.htm">-r (Recurse)</A><BR>
\r
77 <A href="../switches/stdout.htm">-so (use StdOut)</A><BR>
\r
78 <A href="../switches/type.htm">-t (Type of archive)</A><BR>
\r
79 <A href="../switches/exclude.htm">-x (Exclude)</A><BR>
\r
80 <A href="../switches/yes.htm">-y (Assume Yes on all queries)</A>
\r
87 <A href="extract_full.htm">x (Extract with full paths)</A>
\r