1

I would like to run a program only when a specific ASP.NET event occurs in the event-log. Is there any chance that it will get passed the event details when it is triggered?

sysadmin1138
  • 133,124
  • 18
  • 176
  • 300
GrZeCh
  • 605
  • 4
  • 12
  • 28

1 Answers1

1

You can schedule a task to occur when something in the Event Log happens. See here: http://msdn.microsoft.com/en-us/library/aa446887(v=vs.85).aspx

pcunite
  • 130
  • 2
  • From that I see that it is the script's responsibility to re-query the Event Log for any event-data it needs. It is NOT passed directly to it as an argument. – sysadmin1138 May 10 '11 at 23:06
  • I was afraid that passing event variables to program which will be runned when event occur is not possible. So thank you for answering and I'm accepting currently proposed answer. – GrZeCh May 13 '11 at 08:59