source: other-projects/expeditee-release-kits/shared/linux/p7z-essentials/DOCS/MANUAL/switches/type.htm@ 28714

Last change on this file since 28714 was 28714, checked in by ak19, 10 years ago

jts21 - Customising the shared/linux folder for expeditee, meaning that now it's no longer an svn:external from greenstone. Add self extracting 32/64 bit Java 8 JREs, and files + instructions for creating them.

File size: 2.4 KB
Line 
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
33archive without compression (for example, MBR in VHD), 7-Zip can open both
34levels in one step. If you want to open/extract just top
35level archive, use <SPAN class="filename">-t*</SPAN> switch.</P>
36
37<P>Note: gzip or bzip2 formats support only one file per archive.
38If you want to compress more than one file to these formats,
39create a tar archive first, and then compress it with your selected format.</P>
40
41<H4>Example</H4>
42
43<PRE class="example">
447z a -tzip archive.zip *.txt
45</PRE>
46
47<P>adds all <SPAN class="filename">*.txt</SPAN> files from current directory
48to zip archive <SPAN class="filename">archive.zip</SPAN>.</P>
49
50<PRE class="example">
517z 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
55that archive is multivolume .7z archive.</P>
56
57<PRE class="example">
587z 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">
647z 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>
Note: See TracBrowser for help on using the repository browser.