Most importantly - why do you want to do it?
Are they containing sensitive information that you want to remove, or is
it just that you want to keep older logs available?
Most solutions for logging is to browse the event logs and extract all new
entries to secondary files. By keeping track of last entry copied, there
is then no need to remove old entries.
/Per W
On Wed, 6 Dec 2006, KrowniX ()--() wrote:
> Hi,
>
> Friends..I got a problem here...
> I have to do a robot that do the backup of the .evt files (c:\winnt\syste=
m32\config\*.evt) and after the backup is finished I need to delete those f=
iles.
>
> Well...the first thing is easy...just copy the files...and compress then,=
, but, how do I delete a .evt file if it=B4s been used by the Event Viewer =
and the Event Viewer it is been executed on services.exe and Windows NT doe=
sn=B4t allow me to make operations with it.
>
> Anyone knows ...some API...or have some idea about how do I solve this pr=
oblem??
>
> Krownix
>
>
>
> _______________________________________________________
> Novidade no Yahoo! Mail: receba alertas de novas mensagens no seu celular=
=2E Registre seu aparelho agora!
> http://br.mobile.yahoo.com/mailalertas/
>
>
|