Inclusion Examples

Here are a few examples of inclusions, followed by an explanation of each.

Absolute file inclusions

Inclusion rule: /mydir/*.exe

Type: Absolute location

This will include all .exe files in the mydir remote directory, but the path is taken from the root of the remote system.

Inclusion rule:c:\mydir\*.exe

Type: Absolute location

This will include all .exe files in the c:\mydir local directory.

Inclusion rule: /mydir/nextdir/myfil?.*

Type: Absolute location

This will include any file beginning with myfil with one arbitrary character and any extension in the directory /mydir/nextdir.

Absolute directory inclusion

Inclusion rule: /m?dir

Type: Absolute location

This will include all directories that match the mask m?dir, but the path is taken from the root of the file system. The ? is a substitute for any single character.

Inclusion rule: c:\m?dir

Type: Absolute location

This will include all directories on the c: drive that match the mask m?dir. The ? is a substitute for any single character.

Relative directory inclusions

Inclusion rule: mydir

Type: Apply to folders

This will include any directory named mydir anywhere in the file system.

Inclusion rule: m*ir

Type: Apply to folders

This will include any directory that matches the mask m*ir from anywhere in the file system. The * means that the name can have any number and value of character in between the "m" and the "ir."

Relative file inclusion

Inclusion rule: mydir\*.exe

Type: Apply to files

This will include any .exe files in any directory named mydir anywhere in the file system.

Relative file/folder inclusion

Inclusion rule: ~*

Type: Apply to both

This will include any file or folder starting with the ~ character, anywhere in the file system.