Use wildcards in memory protection exclusions Skip Navigation

Use wildcards in memory protection exclusions

Memory exclusions can include the following special characters (all OS): ^ & ' @ { } [ ] , $ = ! - # ( ) % . + ~ _ *
On Windows, any letter value followed by a colon (C:) is also supported.
Pattern syntax for * wildcards
Wildcard
Description
*
The * excludes executables and applications. It matches zero or more characters, except the platform-specific path separator ('\' on Windows)
At this time, "*" escaping is not supported. For example, you cannot exclude a file that contains an asterisk "*" in the file name.
**
The ** excludes drives and directories and can be used to include child directories. It matches zero or more layers of a directory in an absolute path (e.g. C:\MyApp\"\**\").
  • The ** cannot be used with relative paths.
  • With Agent 1560 and 1564, do not end an exclusion with \** because this can result in a Windows restart loop. For more information, visit support.blakberry.com/community to read article 70298.
Note that "**" is not just a double "*", it is a special notation. To avoid confusion, review the following rules when using this special character:
  • "**\" is valid if it is at the beginning of pattern, only for Windows. It will match all directories inside all drives.
  • "\**\" can appear in the pattern string multiple times, there is no limitation.
In a normal wildcard, three asterisks "***" are valid and equal a single asterisk"*". However, three asterisks are not valid for exclusions because it would hide typos. For example, in the pattern "C:\***.exe", users might have wanted to type "C:\**\*.exe" but missed one "\". If "***" were treated as a single "*" it could result in different behavior than was intended.