Use this Knowledge Script to compare the sizes, time stamps, and attributes of two files. You can choose which properties to compare and the event severity if the script finds differences between the specified properties.
Because this script checks the file properties rather than the file content, you can use this script with almost any file type.
Windows 2003 Server or later
The default schedule for this script is Every 10 minutes.
Set the following parameters as needed:
Description |
How to Set It |
---|---|
Raise event if sizes are different? |
Set to y to raise an event if the file size of File #1 is different from the file size for File #2. The default is y. |
Raise event if modification times are different? |
Set to y to raise an event if the file modification time for File #1 is different from the file modification time for File #2. The default is y. |
Raise event if attributes are different? |
Set to y to raise an event if the file attributes for File #1 are different from the file attributes for File #2. The default is y. |
Compare file #1 |
Provide the full path to the first file to compare. For example: C:\Temp\myfile.doc. |
Compare file #2 |
Provide the full path to the second file to compare. |
Event severity level for size difference |
Set the event severity level, from 1 to 40, to indicate the importance of an event in which a size difference exists. The default is 5 (red event indicator). |
Event severity level for time difference |
Set the event severity level, from 1 to 40, to indicate the importance of an event in which a time difference exists. The default is 5 (red event indicator). |
Event severity level for attribute difference |
Set the event severity level, from 1 to 40, to indicate the importance of an event in which an attribute difference exists. The default is 5 (red event indicator). |