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
 
Good idea, but long story short, not workable in this situation. Thanks
anyway.
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top