Still, I think you have a scheduling issue and not a script issue. You need to schedule an event with 4 triggers. One for the months with 30 days, one for those with 31, and one each for Feb 28 & 29th.. the trigger for 2/28 should run a special script that continues only if "tomorrow" isn't 2/29. It then runs the normal cleanup script.

Of course, you could schedule it for midnight on the first of every month...

As far as central logging, here's what we do - we archive the files to a local folder with a short retention period. In our case it's 30 days, but it could be 1 or 2 days. (note - a -1 value removes all files regardless of age, while a zero value means 0-23:59 - less than a full day.) We use the PostArch command to copy the archived files to a central server. Using Robocopy, only newly generated files are copied. We maintain the central files for 90 days and then offline for 2 years (audit requirement), but a global delete would work. BTW - the postarch script uses a UNC copy so no drive mapping is required.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D