You are here: Home > Products > Network Monitor Pro > User Manual > Network Monitoring Checks > File Existence Monitoring, Text String Existence Monitoring

File Existence Monitoring, Text String Existence Monitoring

The program allows you to monitor the file existence over a network.

This test consists in checking the existence of the specified file on a remote or local computer. In the case of the remote monitoring, the check requires the accessibility of the file over the network.

This check can be used if you need to immediately respond to the occurrence of some file in a shared folder (for example, an important document).

Besides the mere file existence check, the application can monitor the availability of a specified string in the file. That can be helpful when monitoring other applications' event log files. Knowing a certain value that can be added by an application to a log file (for example, an error message “error…” ), you can promptly respond to that event and take appropriate actions.

If no search string value is set, the program will only attempt to open the file for reading. The check can return several results indicating the absence of presence of the sought file, finding or absence of the specified string, inability or ability to open the file. Instead of specifying the full file name, you can specify its mask using the standard "*" character (for example, “Writ*.doc” ).

The program allows authenticating for accessing password-protected shared folders.

 

Date and time substitution keys

The program can substitute the date and time to the file name string and to the context search string using the following keys.

Key Result

%d-c%

Displays the current date and time (ex.: 31.01.2018 16:12:45)

%d-d%

Displays the day as a number without a leading zero (1-31).

%d-dd%

Displays the day as a number with a leading zero (01-31).

%d-ddddd%

Displays the current date (ex.: 31.01.2018)

%d-m%

Displays the month as a number without a leading zero (1-12). If the m specifier immediately follows an h or hh specifier, the minute rather than the month is displayed.

%d-mm%

Displays the month as a number with a leading zero (01-12). If the mm specifier immediately follows an h or hh specifier, the minute rather than the month is displayed.

%d-mmm%

Displays the month as an abbreviation (Jan-Dec).

%d-mmmm%

Displays the month as a full name (January-December).

%d-yy%

Displays the year as a two-digit number (00-99).

%d-yyyy%

Displays the year as a four-digit number (0000-9999).

%d-h%

Displays the hour without a leading zero (0-23).

%d-hh%

Displays the hour with a leading zero (00-23).

%d-n%

Displays the minute without a leading zero (0-59).

%d-nn%

Displays the minute with a leading zero (00-59).

%d-s%

Displays the second without a leading zero (0-59).

%d-ss%

Displays the second with a leading zero (00-59).

%d-z%

Displays the millisecond without a leading zero (0-999).

%d-zzz%

Displays the millisecond with a leading zero (000-999).

%d-t%

Displays the time using the format given by the ShortTimeFormat global variable.

%d-tt%

Displays the time using the format given by the LongTimeFormat global variable.

%d-am/pm%

Uses the 12-hour clock for the preceding h or hh specifier, and displays 'am' for any hour before noon, and 'pm' for any hour after noon. The am/pm specifier can use lower, upper, or mixed case, and the result is displayed accordingly.

%d-a/p%

Uses the 12-hour clock for the preceding h or hh specifier, and displays 'a' for any hour before noon, and 'p' for any hour after noon. The a/p specifier can use lower, upper, or mixed case, and the result is displayed accordingly.

/

Displays the date separator character given by the DateSeparator global variable.

:

Displays the time separator character given by the TimeSeparator global variable.

'xx'/"xx"

Characters enclosed in single or double quotes are displayed as-is, and do not affect formatting.

 

Any key specifiers between the %d- and % are allowed. For example:

Key Result
%d-ddmmyy% 310118
%d-ddmmyyyy% 31012018
%d-dmyy% 1218
%d-yymmdd% 180201
%d-hhnnss% 094104

 

See also: Folder Existence Monitoring, File Size Monitoring, Process Existence Monitoring

 

Requirements: Windows NT/2000/XP/2003/Vista/2008/7/8.1/2012/10/2016 supported.