Thanks for the code...sorry about the slipup; I did mean equal to *not* greater than or equal to LOL. Now, I tried your code and it seems to work but what if my logfile was named something like filename-061201-randomnum-1293_log where the date is a bit before the _log and also some of my log names are similar but end in .log instead of _LOG. Anyway, your code got me thinking at least, thanks.