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>-r (Recurse subdirectories) switch</TITLE>
\r
6 <LINK href="style.css" rel="stylesheet" type="text/css">
\r
11 <H1>-r (Recurse subdirectories) switch</H1>
\r
13 <P>Specifies the method of treating wildcards and filenames on the command line.</P>
\r
17 <PRE class="syntax">
\r
23 <TR><TH width="80">Switch</TH> <TH>Description</TH></TR>
\r
24 <TR><TD>-r</TD> <TD>Enable recurse subdirectories.</TD></TR>
\r
25 <TR><TD>-r-</TD> <TD>Disable recurse subdirectories. This option is default for all commands.</TD></TR>
\r
26 <TR><TD>-r0</TD> <TD>Enable recurse subdirectories only for wildcard names.</TD></TR>
\r
31 <PRE class="example">
\r
32 7z l archive.zip *.doc -r-
\r
35 <P>lists all <SPAN class="filename">*.doc</SPAN> files
\r
36 that belong to the archived root directory
\r
37 in the <SPAN class="filename">archive.zip</SPAN> archive.
\r
40 <PRE class="example">
\r
41 7z a -tzip archive.zip -r src\*.cpp src\*.h
\r
44 <P>adds all <SPAN class="filename">*.cpp</SPAN> and <SPAN class="filename">*.h</SPAN>
\r
45 files from directory <SPAN class="filename">src</SPAN> and all it's subdirectories
\r
46 to the <SPAN class="filename">archive.zip</SPAN> archive.</P>
\r
48 <H4>Commands that can be used with this switch</H4>
\r
51 <A href="../commands/add.htm">a (Add)</A>,
\r
52 <A href="../commands/delete.htm">d (Delete)</A>,
\r
53 <A href="../commands/extract.htm">e (Extract)</A>,
\r
54 <A href="../commands/list.htm">l (List)</A>,
\r
55 <A href="../commands/test.htm">t (Test)</A>,
\r
56 <A href="../commands/update.htm">u (Update)</A>,
\r
57 <A href="../commands/extract_full.htm">x (Extract with full paths)</A>
\r
64 <A href="include.htm">-i (Include)</A>,
\r
65 <A href="exclude.htm">-x (Exclude)</A>
\r