Hello Folks,

I'm very new to programming. I'm work as an IT guy. I'm trying to create a stand alone app for general troubleshooting purpose. So here is my question. I managed to create scripts on generating System information etc. Now i need sripts to Export Event Veiwer Logs (Application and Security) to a Notepad. I used to do with command prompt using batch files like "wevtutil qe Application /c:50000 /rd:true /f:text > c:\Event.txt" and also driverquery > c:\Driver.txt not sure how to implement in VB ?? I'm using VS 2010.


Really hoping someone can help me on this.

Thank You !!

Look at the System.Diagnostics.EventLog.GetEventLogs method.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.