OSDN Git Service

add help file in v4.64
[sevenzip/7-Zip.git] / sevenzip.sourceforge.jp / chm / cmdline / switches / type.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>-o (set Output directory) switch</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>-t (set Type of archive) switch</H1>\r
12 \r
13 <P>Specifies the type of archive.</P>\r
14 \r
15 <H4>Syntax</H4>\r
16 \r
17 <PRE class="syntax">\r
18 -t{archive_type}\r
19 </PRE>\r
20 \r
21 <DL>\r
22   <DT>{archive_type}</DT>\r
23   <DD>Specifies the type of archive. It can be: 7z, split, zip, gzip, bzip2, tar, ....\r
24   7z format is the default.\r
25 </DD>\r
26 </DL>\r
27 \r
28 <P>If -t{archive_type} switch is not specified, 7-Zip uses extension of archive to \r
29   detect the type of archive.</P>\r
30 \r
31 <P>Note: gzip or bzip2 formats support only one file per archive.\r
32 If you want to compress more than one file to these formats,\r
33 create a tar archive first, and then compress it with your selected format.</P>\r
34 \r
35 <H4>Example</H4>\r
36 \r
37 <PRE class="example">\r
38 7z a -tzip archive.zip *.txt\r
39 </PRE>\r
40 \r
41 <P>adds all <SPAN class="filename">*.txt</SPAN> files from current directory \r
42 to zip archive <SPAN class="filename">archive.zip</SPAN>.</P>\r
43 \r
44 <PRE class="example">\r
45 7z t -t7z.split archive.7z.001\r
46 </PRE>\r
47 \r
48 <P>tests all files in <SPAN class="filename">archive.7z.001</SPAN>. It also checks\r
49 that archive is multivolume .7z archive.</P>\r
50 \r
51 <PRE class="example">\r
52 7z x -tiso archive.iso\r
53 </PRE>\r
54 \r
55 <P>extracts files from <SPAN class="filename">archive.iso</SPAN> open as ISO archive.\r
56 \r
57 <PRE class="example">\r
58 7z x -tudf archive.iso\r
59 </PRE>\r
60 \r
61 <P>extracts files from <SPAN class="filename">archive.iso</SPAN> open as UDF archive.\r
62 \r
63 \r
64 <H4>Commands that can be used with this switch</H4>\r
65 \r
66 <P>\r
67   <A href="../commands/add.htm">a (Add)</A>,\r
68   <A href="../commands/delete.htm">d (Delete)</A>,\r
69   <A href="../commands/extract.htm">e (Extract)</A>,\r
70   <A href="../commands/list.htm">l (List)</A>,\r
71   <A href="../commands/test.htm">t (Test)</A>,\r
72   <A href="../commands/update.htm">u (Update)</A>,\r
73   <A href="../commands/extract_full.htm">x (Extract with full paths)</A>\r
74 </P>\r
75 \r
76 </BODY>\r
77 </HTML>\r