Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Service start-up recovery option question

Status
Not open for further replies.

joemadera

Technical User
Jun 27, 2006
14
US
Hello,

I need to put a script to execute when a service fails to start, only problem is that I am not sure of the syntax exactly.

I have tried making a .bat file that calls the script, tried calling the script directly, but nothing seems to work.
Under the Recovery tab for a service, there are several options if a service fails, one is to run a program.

I have tried under the --> Run Program option to put the path to both the script or the batch file that calls the script. i have tried with the path c:\service.vbs and c:\service.bat (service.bat is the .bat file that calls the script.)
I have also tried using -- > forcedos.exe and then in the command line parameters: wscript.exe service.vbs

Any help is greatly appreciated.

Thanks
 
I have both Win2K and 2K3 servers to set this up on.

Thanks again,

Joseph
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top