OSDN Git Service

add help file in v4.64
[sevenzip/7-Zip.git] / chm / cmdline / commands / extract.htm
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\r
2 <HTML>\r
3 <HEAD>\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
7 </HEAD>\r
8 \r
9 <BODY>\r
10 \r
11 <H1>e (Extract) command</H1>\r
12 \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
16 \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
20 \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
26 \r
27 <P>7-Zip accepts the following responses:</P>\r
28 \r
29 <TABLE>\r
30   <TR> <TH>Answer</TH> <TH>Abbr.</TH> <TH>Action</TH> </TR>\r
31   <TR> <TD>Yes</TD> <TD>y</TD> <TD>&nbsp;</TD> </TR>\r
32   <TR> <TD>No</TD> <TD>n</TD> <TD>&nbsp;</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
36 \r
37 </TABLE>\r
38 \r
39 <P>Abbreviated responses are allowed.</P>\r
40 \r
41 <H4>Examples</H4>\r
42 \r
43 <PRE class="example">\r
44 7z e archive.zip\r
45 </PRE>\r
46 \r
47 <P>extracts all files from archive\r
48     <SPAN class="filename">archive.zip</SPAN> to the current directory.</P>\r
49 \r
50 <PRE class="example">\r
51 7z e archive.zip -oc:\soft *.cpp -r\r
52 </PRE>\r
53 \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
56 \r
57 \r
58 <H4>Notes</H4>\r
59 \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
64 \r
65 \r
66 <H4>Switches that can be used with this command</H4>\r
67 \r
68 <P>\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
81 </P>\r
82 \r
83 <H4>See also</H4>\r
84 \r
85 <P>\r
86   <B>Commands:</B> \r
87   <A href="extract_full.htm">x (Extract with full paths)</A>\r
88 </P>\r
89 \r
90 </BODY>\r
91 </HTML>\r