updates to table - convert to htrml table to allow for ital, bolding and use of wildcards

This commit is contained in:
Iaan D'Souza-Wiltshire 2017-10-30 17:45:40 -07:00
parent 81824f0e24
commit cf42ceaaa5

View File

@ -211,12 +211,84 @@ You can use the asterisk `*`, question mark `?`, or environment variables (such
The following table describes how the wildcards can be used and provides some examples.
Wildcard | Use in file and file extension exclusions | Use in folder exclusions | Example use | Example matches
---|---|---|---
`*` (asterisk) | Replaces any number of characters. <br />Only applies to files in the last folder defined in the argument. | Replaces a single folder. <br />Use multiple `*` with folder slashes `\` to indicate multiple, nested folders. </br>After matching to the number of wilcarded and named folders, all subfolders will also be included. | <ol><li>C:\MyData\my\\**\***.txt</li><li>C:\somepath\\**\***\Data</li><li>C:\Serv\\**\***\\**\***\Backup</ol> | <ol><li><i>C:\MyData\\<b>notes</b>.txt</i></li><li>Any file in: <ul><li><i>C:\somepath\\<b>Archives</b>\Data</i> and its subfolders</li><li><i>C:\somepath\\<b>Authorized</b>\Data</i> and its subfolders</li></ul><li>Any file in:<ul><li><i>C:\Serv\\<b>Primary</b>\\<b>Denied</b>\Backup</i> and its subfolders</li><li><i>C:\Serv\\<b>Secondary</b>\\<b>Allowed</b>\Backup</i> and its subfolders</ol>
`?` (question mark) | Replaces a single character. <br />Only applies to files in the last folder defined in the argument. | Replaces a single character in a folder name. </br>After matching to the number of wilcarded and named folders, all subfolders will also be included. | <ol><li>C:\MyData\my<b>?</b>.zip</li><li>C:\somepath\\<b>?</b>\Data</li><li>C:\somepath\\test0<b>?</b>\Data</li></ol> | <ol><li><i>C:\MyData\my<b>1</b>.zip</i></li><li>Any file in <i>C:\somepath\\<b>P</b>\Data</i> and its subfolders</li><li>Any file in <i>C:\somepath\test0<b>1</b>\Data</i> and its subfolders</li></ol>
Environment variables | The defined variable will be populated as a path when the exclusion is evaluated | Same as file and extension use | <ol><li><b>%ALLUSERSPROFILE%</b>\CustomLogFiles</li></ol> | <ol><li><i><b>C:\ProgramData</b>\CustomLogFiles\Folder1\file1.txt</i></li></ol>
<table>
<tr>
<th>Wildcard</th>
<th>Use in file and file extension exclusions</th>
<th>Use in folder exclusions</th>
<th>Example use</th>
<th>Example matches></th>
</tr>
<tr>
<td><b>*</b> (asterisk)</td>
<td>Replaces any number of characters. <br />Only applies to files in the last folder defined in the argument. </td>
<td>Replaces a single folder. <br />Use multiple <b>*</b> with folder slashes <b>\</b> to indicate multiple, nested folders. </br>After matching to the number of wilcarded and named folders, all subfolders will also be included.</td>
<td>
<ol>
<li>C:\MyData\my\<b>*</b>.txt</li>
<li>C:\somepath\<b>*</b>\Data</li>
<li>C:\Serv\<b>*</b>\<b>*</b>\Backup
</ol>
</td>
<td>
<ol>
<li><i>C:\MyData\<b>notes</b>.txt</i></li>
<li>Any file in:
<ul>
<li><i>C:\somepath\<b>Archives</b>\Data</i> and its subfolders</li>
<li><i>C:\somepath\<b>Authorized</b>\Data</i> and its subfolders</li>
</ul>
<li>Any file in:
<ul>
<li><i>C:\Serv\<b>Primary</b>\<b>Denied</b>\Backup</i> and its subfolders</li>
<li><i>C:\Serv\<b>Secondary</b>\<b>Allowed</b>\Backup</i> and its subfolders</li>
</ul>
</ol>
</td>
</tr>
<tr>
<td>
<b>?</b> (question mark)
</td>
<td>
Replaces a single character. <br />
Only applies to files in the last folder defined in the argument.
</td>
<td>
Replaces a single character in a folder name. </br>
After matching to the number of wilcarded and named folders, all subfolders will also be included.
</td>
<td>
<ol>
<li>C:\MyData\my<b>?</b>.zip</li>
<li>C:\somepath\<b>?</b>\Data</li>
<li>C:\somepath\test0<b>?</b>\Data</li>
</ol>
</td>
<td>
<ol>
<li><i>C:\MyData\my<b>1</b>.zip</i></li>
<li>Any file in <i>C:\somepath\<b>P</b>\Data</i> and its subfolders</li>
<li>Any file in <i>C:\somepath\test0<b>1</b>\Data</i> and its subfolders</li>
</ol>
</td>
</tr>
<tr>
<td>Environment variables</td>
<td>The defined variable will be populated as a path when the exclusion is evaluated</td>
<td>Same as file and extension use </td>
<td>
<ol>
<li><b>%ALLUSERSPROFILE%</b>\CustomLogFiles</li>
</ol>
</td>
<td>
<ol>
<li><i><b>C:\ProgramData</b>\CustomLogFiles\Folder1\file1.txt</i></li>
</ol>
</td>
</tr>
</table>
>[!IMPORTANT]
>If you mix a file exclusion argument with a folder exclusion argument, the rules will stop at the file argument match in the matched folder, and will not look for file matches in any subfolders.