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>-t (set Type of archive) switch</H1>
\r
13 <P>Specifies the type of archive.</P>
\r
17 <PRE class="syntax">
\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
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
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
37 <PRE class="example">
\r
38 7z a -tzip archive.zip *.txt
\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
44 <PRE class="example">
\r
45 7z t -t7z.split archive.7z.001
\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
51 <PRE class="example">
\r
52 7z x -tiso archive.iso
\r
55 <P>extracts files from <SPAN class="filename">archive.iso</SPAN> open as ISO archive.
\r
57 <PRE class="example">
\r
58 7z x -tudf archive.iso
\r
61 <P>extracts files from <SPAN class="filename">archive.iso</SPAN> open as UDF archive.
\r
64 <H4>Commands that can be used with this switch</H4>
\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