Exporting the System/Application event log

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am writing a function in C# that will export the Application and System
event logs to a file for viewing on another PC. I am using the EventLog
class, and am able to browse the events in the log. What I would like to do
is export that data to a .evt file, so that the log can be opened and viewed
in the Event Viewer. I was unable to find a way to accomplish this with the
methods provided in the EventLog class. Is there a way to export the logs to
a .evt file so that Event Viewer can read them?
 
Back
Top