I am writing an application that uses a custom eventLog for error / warning storage
VB Code:
If Not System.Diagnostics.EventLog.SourceExists("ILStep") Then EventLog.CreateEventSource("ILStep", "ILStep") End If evtLog = New System.Diagnostics.EventLog("ILStep") evtLog.Source = "ILStep"
and then to view the log, i created a new mmc panel
VB Code:
Shell("mmc ILStep.msc", AppWinStyle.NormalFocus)
The customer asked that the logs be exported and cleared weekly. Is there a way to automate the event viewer "Export" and "Clear log" commands through the framework?




Reply With Quote