Maximus
20 Sep 2004, 10:50pm
Hello veveryone,
I have a situation where a log file is generated throughout the day with the final log created at night between 11:00pm and 1:00am the next morning and is named according to the date it is for, ex040918 (ex((yy,mm,dd))) for Sept.18,2004, ex040930 for Sept. 30, 2004, ex041001 for Oct. 1, 2004. I need to create a batch program to run after 1:00am that will copy the log for the previous day to an existing directory. For example: ex040919 created 9/20/04 12:05am and ex040920 created 9/20/04 12:30am exist and at 1:00am the batch program has to copy ex040919 to the directory. Or ex040918 created 9/19/04 12:03am, ex040919 created 9/19/04 11:55pm and ex040920 created 12:20am 9/20/04. File ex040919 needs to be copied. Sorry for being long winded but my head is spinning.
Thank you for any help and guidance.
I have a situation where a log file is generated throughout the day with the final log created at night between 11:00pm and 1:00am the next morning and is named according to the date it is for, ex040918 (ex((yy,mm,dd))) for Sept.18,2004, ex040930 for Sept. 30, 2004, ex041001 for Oct. 1, 2004. I need to create a batch program to run after 1:00am that will copy the log for the previous day to an existing directory. For example: ex040919 created 9/20/04 12:05am and ex040920 created 9/20/04 12:30am exist and at 1:00am the batch program has to copy ex040919 to the directory. Or ex040918 created 9/19/04 12:03am, ex040919 created 9/19/04 11:55pm and ex040920 created 12:20am 9/20/04. File ex040919 needs to be copied. Sorry for being long winded but my head is spinning.
Thank you for any help and guidance.