I have a file availability check as follows:
\\path\to\destination\filename%jjj[+162d]%.txt
This check fails when the the resulting number is higher than 366, i.e. it will detect the existence of this file:
\\path\to\destination\filename366.txt
but will not detect the existence of this file:
\\path\to\destination\filename367.txt
Using 7.42 beta (but this didn't work in previous versions either)
Date macro fails under specific circumstances
It works just like it suppose to work.
Quote from the manual
Probably you misunderstand how expressions like [+1d] work? HostMonitor does not add just number to another number. It calculates correct calendar date.
Regards
Alex
Quote from the manual
Do you really think that calendar year may contain more than 366 days?%jjj% - The day of the year as a three digit decimal number in the range of 001 to 366
Probably you misunderstand how expressions like [+1d] work? HostMonitor does not add just number to another number. It calculates correct calendar date.
Regards
Alex
Thanks for your swift reply.
What i'm trying to do is the following: once a day i have to check for the existence of a file that has an incrementing number in it's filename that is related to the day of year, as such:
today's check should find a file called file439.txt
tomorrow's check should find a filename called file440.txt
the day aftyer that: file441.txt
So i based my test on the current day of the year (%jjj%) with a fixed number of days added to it, and it didn't work past the number 366. I'll try and figure out if i can test another way.
What i'm trying to do is the following: once a day i have to check for the existence of a file that has an incrementing number in it's filename that is related to the day of year, as such:
today's check should find a file called file439.txt
tomorrow's check should find a filename called file440.txt
the day aftyer that: file441.txt
So i based my test on the current day of the year (%jjj%) with a fixed number of days added to it, and it didn't work past the number 366. I'll try and figure out if i can test another way.