Restart Services

  • Thread starter Thread starter chrisl
  • Start date Start date
C

chrisl

I need to run a file when a service stops or fails. Does
anybody know how to do this? The recovery tab within
services doesn't seem to work.
 
net start "Start Scheduler" (for example).

It's best done from a Command Prompt so that you can
see the result of your action.
 
Not sure what you mean!? Here's a little more detail: When a service fails I need it to run Internet Explorer and point to a specific asp page on my web site. This page automatically sends me an email notification that the service has failed along with specific info that I can include. For example: Program = "C:\Program Files\Internet Explorer\iexplore.exe"
Command line parameters = www.domainname.com/pagename.asp This works directly from the run box or from command line. I have also written a batch file with the correct parameters in it and then referenced that command line with no luck. ???????????
 
Chrisl said:
Not sure what you mean!? Here's a little more detail: When a service fails
I need it to run Internet Explorer and point to a specific asp page on my
web site. This page automatically sends me an email notification that the
service has failed along with specific info that I can include. For example:
Program = "C:\Program Files\Internet Explorer\iexplore.exe"
Command line parameters = www.domainname.com/pagename.asp This works
directly from the run box or from command line. I have also written a batch
file with the correct parameters in it and then referenced that command line
with no luck. ???????????
=========================
Please supply full details about:
- The batch file you wrote
- The parameters you used
- How you referenced it
- What happened (e.g. full error messages)

Without those details, I can only guess.
 
Sure. Use (e-mail address removed), and omit each and
every "y" from this address.


chrisl said:
Can I send it to you directly? I don't want to reveal too much on the
public form!
 
Back
Top