Trigger batch file/application resulting from specific event?

  • Thread starter Thread starter brandon
  • Start date Start date
B

brandon

Hi all,

I am trying to find out how I can trigger a batch file to run if a specific
event is written to the event log (Windows NT4.0 Server). It is a specific
event that occurs randomly every so often so I don't want to use task
scheduler and instead want to run the batch as soon as the event log
receives the event. Does anyone know of any way to do this? If not, are
there any utilities that will allow one to do this? Many thanks!

brandon
 
brandon said:
I am trying to find out how I can trigger a batch file to run if a specific
event is written to the event log (Windows NT4.0 Server). It is a specific
event that occurs randomly every so often so I don't want to use task
scheduler and instead want to run the batch as soon as the event log
receives the event. Does anyone know of any way to do this? If not, are
there any utilities that will allow one to do this? Many thanks!

Hi

If you install WMI on the computer (if you haven't already), you should be able
to do this, see this one for an example:

Monitor Event Logs
Description
Creates a temporary event consumer that monitors event logs for events with an
event ID of 533.
http://www.microsoft.com/technet/scriptcenter/monitor/scrmon21.asp


WMI CORE 1.5 for Windows NT 4.0
http://www.microsoft.com/downloads/release.asp?ReleaseID=18491
 
Back
Top