File Availability test failing using macro and wild card

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
ironcurtain
Posts: 34
Joined: Mon Apr 28, 2008 10:15 am

File Availability test failing using macro and wild card

Post by ironcurtain »

I am using syntax as follows:

\\{Directory}\{Path}\%yyyymmdd[-1d]%*EQU.zip

with intention to detect whether file exists with name such as
20081103-TRY-AGAIN-EQU.ZIP
Where the date in the filename is yesterday's date.

In test method I have selected "Translate Macros". I have done a Windows Command DIR and seen that files exist that fit the file mask, but the test has failed.

Can wildcards not be used alongside HostMonitor macro variables?
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

I just tested the same file mask %yyyymmdd[-1d]%*EQU.zip
Works fine.

I do not think "\\{Directory}\{Path}\" is correct expression. If you are using UNC path and \\ prefix, I think you should specify hostname or IP address, e.g. \\192.168.10.10\sharedfolder\subfolder\filename

Regards
Alex
ironcurtain
Posts: 34
Joined: Mon Apr 28, 2008 10:15 am

Post by ironcurtain »

Thank you, yes it was my mistake, the it was necessary for me to use the hostname with \\prefix.
The test works fine with macro and wild card alongside.
Post Reply