RayRay459 has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use Win32::EventLog; use strict; my ($Event, $filename, $directory); $directory = 'c:/EventLogs/'; for ('System', 'Security', 'Application') { $Event = new Win32::EventLog ("$_", ""); $filename = $directory . $_ . '.evt'; $Event->Clear($filename)or die "Couldn't clear eventlogs: $!"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(crazyinsomniac) Re: clearing 2k eventlog
by crazyinsomniac (Prior) on Dec 22, 2001 at 09:32 UTC | |
by RayRay459 (Pilgrim) on Dec 28, 2001 at 00:33 UTC |