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