source: main/trunk/release-kits/shared/mac/p7z-essentials/DOCS/MANUAL/switches/recurse.htm@ 30095

Last change on this file since 30095 was 30095, checked in by ak19, 9 years ago

We've decided to include a JRE for Mac Greenstone binaries, since later versions of Macs (like Yosemite) do not come with Java. Adding the generated jre 1.7.0_79 self-extracting binary and its related p7z component. Jeremy had long ago compiled up the p7z-essentials binaries 7za and 7zCon.sfx on the Mac that are necessary for generating the Mac self-extracting jre binary.

File size: 2.3 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>-r (Recurse subdirectories) switch</TITLE>
6 <LINK href="style.css" rel="stylesheet" type="text/css">
7</HEAD>
8
9<BODY>
10
11<H1>-r (Recurse subdirectories) switch</H1>
12
13<P>Specifies the method of treating wildcards and filenames on the command line.</P>
14
15<H4>Syntax</H4>
16
17<PRE class="syntax">
18-r[- | 0]
19</PRE>
20
21
22<TABLE>
23 <TR><TH width="80">Switch</TH> <TH>Description</TH></TR>
24 <TR><TD>-r</TD> <TD>Enable recurse subdirectories.</TD></TR>
25 <TR><TD>-r-</TD> <TD>Disable recurse subdirectories. This option is default for all commands.</TD></TR>
26 <TR><TD>-r0</TD> <TD>Enable recurse subdirectories only for wildcard names.</TD></TR>
27</TABLE>
28
29<H4>Examples</H4>
30
31<PRE class="example">
327z l archive.zip *.doc -r-
33</PRE>
34
35<P>lists all <SPAN class="filename">*.doc</SPAN> files
36 that belong to the archived root directory
37 in the <SPAN class="filename">archive.zip</SPAN> archive.
38 </P>
39
40<PRE class="example">
417z a -tzip archive.zip -r src\*.cpp src\*.h
42</PRE>
43
44<P>adds all <SPAN class="filename">*.cpp</SPAN> and <SPAN class="filename">*.h</SPAN>
45 files from directory <SPAN class="filename">src</SPAN> and all it's subdirectories
46 to the <SPAN class="filename">archive.zip</SPAN> archive.</P>
47
48<PRE class="example">
497z a archive.7z folder1\
50</PRE>
51
52<P>adds all files from directory <SPAN class="filename">folder1</SPAN> and all it's subdirectories
53 to the <SPAN class="filename">archive.7z</SPAN> archive.</P>
54
55<PRE class="example">
567z a archive.7z -r folder2\
57</PRE>
58
59<P>searches all <SPAN class="filename">folder2</SPAN> directories in all subdirectories,
60 and adds them (including all subdirectories) to the <SPAN class="filename">archive.7z</SPAN> archive.</P>
61
62<H4>Commands that can be used with this switch</H4>
63
64<P>
65 <A href="../commands/add.htm">a (Add)</A>,
66 <A href="../commands/delete.htm">d (Delete)</A>,
67 <A href="../commands/extract.htm">e (Extract)</A>,
68 <A href="../commands/list.htm">l (List)</A>,
69 <A href="../commands/test.htm">t (Test)</A>,
70 <A href="../commands/update.htm">u (Update)</A>,
71 <A href="../commands/extract_full.htm">x (Extract with full paths)</A>
72</P>
73
74<H4>See also</H4>
75
76<P>
77 <B>Switches:</B>
78 <A href="include.htm">-i (Include)</A>,
79 <A href="exclude.htm">-x (Exclude)</A>
80</P>
81
82</BODY>
83</HTML>
Note: See TracBrowser for help on using the repository browser.