How to send email msg if a program stops

  • Thread starter Thread starter OscarVogel
  • Start date Start date
O

OscarVogel

We have a Windows 2000 computer that should always be running a
particular executable program. Sometimes the program closes
unexpectedly. I want the system to send an email whenever the program
is closed (including whenever the system reboots). How can I set up an
alert to do that?
 
Performance Monitor can send an alert via email. Might want to see if you
can use that.
 
Is running you application as a service an option? that way you could
configure the service to restart after each failure?

Ian
 
OscarVogel said:
We have a Windows 2000 computer that should always be running a particular
executable program. Sometimes the program closes unexpectedly. I want
the system to send an email whenever the program is closed (including
whenever the system reboots). How can I set up an alert to do that?

Invoke the following batch file with the Task Scheduler once
every five minutes:

@echo off
TaskList | find /i "SomeProg.exe" && goto :eof
c:\tools\blat /.. /.. /..

blat.exe is a command line mailer that you can download
from a number of sites.
 
Back
Top