|
View previous topic :: View next topic |
Author |
Message |
LordJezo
Joined: 09 Aug 2004 Posts: 28
|
Posted: Fri Sep 03, 2004 10:34 am Post subject: What am I doing wrong with this file test date macro? |
|
|
Trying to get a file check macro to pick up this type of format:
slhe_access.2004-09-02.log
From the directory:
E:\logs\slhe\
I have it set in the test to be:
E:\logs\slhe\slhe_access.%yyyy[-1d]%-%mm[-1d]%-%dd[-1d]%.log
(the [-1d] is because the date is always one day behind)
For some reason it is not translating the macro into the day and year. What am I doing wrong??? It keeps telling me the file is not there but I know it is, I am looking at it in the window right now. All of my other date macro type tests work, just not this one.
Any hints?
I just did some more checking into it.. everything works up until the day part of the macro. If I do:
E:\logs\slhe\slhe_access.%yyyy[-1d]%-%mm[-1d]%-02.log
it works fine but as soon as I add in the %dd[-1d]% part the test fails. Today is 03 so it should translate into 02.
Stumped. |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12798 Location: USA
|
Posted: Fri Sep 03, 2004 11:14 am Post subject: |
|
|
Why you do not use E:\logs\slhe\slhe_access.%yyyy-mm-dd[-1d]%.log instead?
Regards
Alex |
|
Back to top |
|
|
LordJezo
Joined: 09 Aug 2004 Posts: 28
|
Posted: Fri Sep 03, 2004 12:09 pm Post subject: |
|
|
KS-Soft wrote: | Why you do not use E:\logs\slhe\slhe_access.%yyyy-mm-dd[-1d]%.log instead?
Regards
Alex |
Didn't even think of that! I will try it after the weekend and let you know how it went.
Thanks! |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|