Hellos,
I'm writing a script to write to the windows 2000 event log using the following script.
_____________________________________________________
my %FileEvent=(
'EventID',5150,
'EventType',EVENTLOG_WARNING_TYPE,
'Category',NULL,
'Strings',"INCORRECT FILE DEFFINETION FOR -> $list",
'Data',"FILE: $FName-$mon-$mday-$year-$hour-$min-$sec.$FExt Was Archived",);
$EventLog = new Win32::EventLog( 'Sample Monitor' );
$EventLog->Report(\%FileEvent);
_______________________________________________________
But the results written looks like this:
_______________________________________________________
The description for Event ID ( 5150 ) in Source ( Sample Monitor ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. The following information is part of the event: INCORRECT FILE DEFFINETION FOR -> nav.xls.
_______________________________________________________
How can I get a clean event wo the log with out the dll errors and such so the out put similar to this.
_______________________________________________________
INCORRECT FILE DEFFINETION FOR -> nav.xls.
_______________________________________________________
Thanks In Advance 8)
I'm writing a script to write to the windows 2000 event log using the following script.
_____________________________________________________
my %FileEvent=(
'EventID',5150,
'EventType',EVENTLOG_WARNING_TYPE,
'Category',NULL,
'Strings',"INCORRECT FILE DEFFINETION FOR -> $list",
'Data',"FILE: $FName-$mon-$mday-$year-$hour-$min-$sec.$FExt Was Archived",);
$EventLog = new Win32::EventLog( 'Sample Monitor' );
$EventLog->Report(\%FileEvent);
_______________________________________________________
But the results written looks like this:
_______________________________________________________
The description for Event ID ( 5150 ) in Source ( Sample Monitor ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. The following information is part of the event: INCORRECT FILE DEFFINETION FOR -> nav.xls.
_______________________________________________________
How can I get a clean event wo the log with out the dll errors and such so the out put similar to this.
_______________________________________________________
INCORRECT FILE DEFFINETION FOR -> nav.xls.
_______________________________________________________
Thanks In Advance 8)