
02-28-2007
|
|
|
|
Accessing Vista log file "Microsoft-Windows-TaskScheduler/Operatio
Hi,
I am trying to access the log file at
"Microsoft-Windows-TaskScheduler/Operational" in vista using the following
code snippet:
EventLog el = new EventLog();
if
(EventLog.Exists(@"Microsoft-Windows-TaskScheduler/Operational"))
{
// doSomething
}
else
{
MessageBox.Show("not found");
return "";
}
However the code is failing to find the log file inspite of it being there.
Any thoughts on where I am wrong?
Thanks.
Regards,
Soumitra
|