Folder/File Availability wildcards

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
doodleman99
Posts: 38
Joined: Tue Sep 02, 2008 5:45 am

Folder/File Availability wildcards

Post by doodleman99 »

Hi there guys,
I used to run a file check to check that last night's backup was created.

but it now seems to be failing even though the file exists?

it used to check for \\server\share\folder\subFolder\*.bak and alert if the file was older than 12hours

has something changed in a recent update that would affect the use of the wildcard * in my file location?
is there an alternative?

Thanks,
JV
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

but it now seems to be failing even though the file exists?
seems to be failing?
What is exactly test Status/Reply? HostMonitor version?
it used to check for \\server\share\folder\subFolder\*.bak and alert if the file was older than 12hours
If there are several files in the folder then using "*" is wrong idea because you do not want to check just some "random" file, you want to check newest file, right? Then you should use %NewestFile% variable
\\server\share\folder\subFolder\%NewestFile%

Regards
Alex
doodleman99
Posts: 38
Joined: Tue Sep 02, 2008 5:45 am

Post by doodleman99 »

ah!!! perfect!
didnt know about that variable :( sorry!!!

there are indeed multiple files which is obviously why it's failing..... not sure how/why it worked before?

Many thanks for your speedy(as always) response!!!
keep up the good work!

JV
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

You are welcome :)

Regards
Alex
Post Reply