| View previous topic :: View next topic |
| Author |
Message |
doodleman99
Joined: 02 Sep 2008 Posts: 17
|
Posted: Fri Feb 24, 2012 4:52 am Post subject: Folder/File Availability wildcards |
|
|
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 |
|
| Back to top |
|
 |
KS-Soft
Joined: 03 Apr 2002 Posts: 10405 Location: USA
|
Posted: Fri Feb 24, 2012 5:41 am Post subject: |
|
|
| Quote: | | but it now seems to be failing even though the file exists? |
seems to be failing?
What is exactly test Status/Reply? HostMonitor version?
| Quote: | | 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 |
|
| Back to top |
|
 |
doodleman99
Joined: 02 Sep 2008 Posts: 17
|
Posted: Fri Feb 24, 2012 7:42 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
KS-Soft
Joined: 03 Apr 2002 Posts: 10405 Location: USA
|
Posted: Fri Feb 24, 2012 7:58 am Post subject: |
|
|
You are welcome
Regards
Alex |
|
| Back to top |
|
 |
|