s2mikey Posted August 24, 2011 Share Posted August 24, 2011 I did some searching already but cant quite find what I want. I run some scripts overnight on our application and every so often, Id like to do the following: 1) Save the entire contents of the event log as a ".evt" file. 2) Clear the event log 3) Continue running script I figure every couple hours we'd like the event log saved and cleared. Ive already tried simply launching the Event Viewer app and trying to automate simply clicking the "Application" tree view item, then selecting the "Save Log File As..." option but I cannot make this work. There are no control names or any way I can find to click the right-mouse context menu items or even to click the Application tree view item. We just need the whole log - no parsing or anything like that. Ive seen lots of examples of specific items being read/written to the log using Auto UT but not just a simple "save the whole shibang". The help file does show some event log functions but nothing about saving it out. Im stuck. ????? Link to comment Share on other sites More sharing options...
MrMitchell Posted August 31, 2011 Share Posted August 31, 2011 http://www.autoitscript.com/autoit3/docs/libfunctions/EventLog%20Management.htm Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now