Combining Tokens in an Inventory Rules Folder

In an inventory rules folder, the set of files used to identify a package are combined by using AND and OR operators.

The AND operator evaluates to true when both files connected by the AND are found in the same directory.

The OR operator evaluates to true when any (or both) of the files connected by the OR are found in a directory.

AND has precedence over OR.

Note that the Inventory Agent program searches for the list of files within each directory. For example, if a package is defined as two files connected by an AND operator and the two files exist in different directories, the package is not detected:

FILE "CONFIG.SYS"
  AND
  FILE "SYSTEM.INI"

A package with AND operators is detected on a computer when all the file rules evaluate to true within the same directory. The example package would be found if CONFIG.SYS and SYSTEM.INI existed in the same directory (for example, C:\BACKUP).

For files connected by an OR operator, one or both must exist in a directory for the package to be detected. For example, if a package is defined as two files connected by an OR operator and the two files exist in the same directory, one instance of the package is detected:

FILE "CONFIG.SYS"
  OR
  FILE "SYSTEM.INI"

If CONFIG.SYS is detected in C:\ and SYSTEM.INI is detected in C:\WINDOWS, two instances of the example package are detected because the file rule evaluates to true in both directories.