Ernie,Nice script, I just have one small addition if you don't mind...
If you want to see the actual event log files and maybe import them into a database, then instead of deleting the system.txt files etc. Add in the following:
shell "%comspec% /c ren application.txt @wksta.@mdayno@month@year.application.prn"
shell "%comspec% /c ren system.txt @wksta.@mdayno@month@year.system.prn"
shell "%comspec% /c ren security.txt @wksta.@mdayno@month@year.security.prn"
This of course would only work if you did it once a day/week etc. I am not good enough to modify your whole script, maybe someone could have a wee play.
The *.prn files are Space Delimited (open with Excel)
Anyway, thanks again for the nice script.
dephier