Jump to content

[Solved] Log file to keep track of application executions by day/month?


mdwerne
 Share

Recommended Posts

Hello,

I have an AutoIt application that's run about 30-50 times a day from a server, and my management is interested in knowing exactly how many times it's run per day, and per month...mainly to see trends in usage. Without doing the work for me, can anyone offer a suggestion (method or example) as to how I would keep track of an execution count variable that is updated from multiple machines? Again, per day and per month are the metrics I'm after...I don't mind doing the per year calculation.

Thanks for any suggestions,
-Mike

Edited by mdwerne
Link to comment
Share on other sites

  • Moderators

Event viewer would be the standard way. Have your script write out to the Event Log, with a specific event code. You can then write code to parse the event logs later and extract the data you're after. Look at the _eventlog_* functions in the help file, or do something as simple as:

 

ShellExecute("EventCreate.exe", '/L Application /T Information /SO "Windows Installer" /ID 666 /D "Windows Installer 4.5 Installed Successfully"', "", "", @SW_HIDE)

 

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...