OSDN Git Service

99b070a9fd36d194ebcaa5241727e15c644bca1b
[sevenzip/7-Zip.git] / chm / cmdline / commands / update.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>u (Update) command</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>u (Update) command</H1>\r
12 \r
13 <P>Update older files in the archive and add files that are not already in the archive.</P>\r
14 \r
15 <P>Note: The current version of 7-Zip cannot change an archive which\r
16 was created with the solid option switched on.\r
17 To update a .7z archive you must create and update that archive only in non-solid\r
18 mode (-ms=off switch).</P>\r
19 \r
20 <H4>Example</H4>\r
21 \r
22 <PRE class="example">\r
23 7z u archive.zip *.doc\r
24 </PRE>\r
25 \r
26 <P>updates <SPAN class="filename">*.doc</SPAN> files to archive\r
27     <SPAN class="filename">archive.zip</SPAN>.</P>\r
28 \r
29 \r
30 <H4>Notes</H4>\r
31 \r
32 <P>7-Zip doesn't uses the system wildcard parser. 7-Zip doesn't\r
33 follow the archaic rule by which *.* means any file. 7-Zip treats\r
34 *.* as matching the name of any file that has an extension. To process \r
35 all files, you must use a * wildcard.</P>\r
36 \r
37 \r
38 <H4>Switches that can be used with this command</H4>\r
39 \r
40 <P>\r
41   <A href="../switches/include.htm">-i (Include)</A><BR>\r
42   <A href="../switches/method.htm">-m (Method)</A><BR>\r
43   <A href="../switches/password.htm">-p (Set Password)</A><BR>\r
44   <A href="../switches/recurse.htm">-r (Recurse)</A><BR>\r
45   <A href="../switches/sfx.htm">-sfx (create SFX)</A><BR>\r
46   <A href="../switches/stdin.htm">-si (use StdIn)</A><BR>\r
47   <A href="../switches/stdout.htm">-so (use StdOut)</A><BR>\r
48   <A href="../switches/shared.htm">-ssw (Compress shared files)</A><BR>\r
49   <A href="../switches/type.htm">-t (Type of archive)</A><BR>\r
50   <A href="../switches/update.htm">-u (Update)</A><BR>\r
51   <A href="../switches/working_dir.htm">-w (Working Dir)</A><BR>\r
52   <A href="../switches/exclude.htm">-x (Exclude)</A>\r
53 </P>\r
54 \r
55 <H4>See also</H4>\r
56 \r
57 <P>\r
58   <B>Commands:</B> \r
59   <A href="add.htm">a (Add)</A>,\r
60   <A href="delete.htm">d (Delete)</A>,\r
61 </P>\r
62 \r
63 <P>\r
64   <B>Switches:</B>\r
65   <A href="../switches/update.htm">-u (Update)</A>\r
66 </P>\r
67 \r
68 </BODY>\r
69 </HTML>\r