OSDN Git Service

9569493a5ac9290d2df0945edb9cda6e31f1dc00
[sevenzip/7-Zip.git] / chm / cmdline / switches / password.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>-p (set Password) 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>-p (set Password) switch</H1>\r
12 \r
13 <P>Specifies password.</P>\r
14 \r
15 <H4>Syntax</H4>\r
16 \r
17 <PRE class="syntax">\r
18 -p{password}\r
19 </PRE>\r
20 \r
21 <DL>\r
22   <DT>{password}</DT>\r
23   <DD>Specifies password.</DD>\r
24 </DL>\r
25 \r
26 \r
27 <H4>Examples</H4>\r
28 \r
29 <PRE class="example">\r
30 7z a archive.7z -psecret -mhe *.txt\r
31 </PRE>\r
32 <P>compresses *.txt files to <SPAN class="filename">archive.7z</SPAN> using password \r
33 "secret". Also it encrypts archive headers (-mhe switch), so filenames will be encrypted.\r
34 </P>\r
35 \r
36 <PRE class="example">\r
37 7z x archive.zip -psecret\r
38 </PRE>\r
39 <P>extracts all files from <SPAN class="filename">archive.zip</SPAN> using password \r
40 "secret".</P>\r
41 \r
42 <H4>Commands that can be used with this switch</H4>\r
43 \r
44 <P>\r
45   <A href="../commands/add.htm">a (Add)</A>,\r
46   <A href="../commands/delete.htm">d (Delete)</A>,\r
47   <A href="../commands/extract.htm">e (Extract)</A>,\r
48   <A href="../commands/test.htm">t (Test)</A>,\r
49   <A href="../commands/update.htm">u (Update)</A>,\r
50   <A href="../commands/extract_full.htm">x (Extract with full paths)</A>\r
51 </P>\r
52 \r
53 </BODY>\r
54 </HTML>\r