Board index » Visual Studio » Windows service fail action: "run program" not working

Windows service fail action: "run program" not working

Visual Studio316
I have a script that will email me when a service fails for the 2nd

time. I've set the service recovery options to "run program" and in the

program box put < cscript c:\path\scriptname.vbs>but the script

doesn't run.

Any ideas?


-
 

Re:Windows service fail action: "run program" not working

<iain@firmbyte.com>wrote in message

Quote
I have a script that will email me when a service fails for the 2nd

time. I've set the service recovery options to "run program" and in the

program box put < cscript c:\path\scriptname.vbs>but the script

doesn't run.

Any ideas?





Try entering the full path and name of cscript

(C:\Windows\System32\Cscript.exe) in the "program" textbox, and put the

command line parameters (c:\path\scriptname.vbs) in the "command line

parameters" textbox.



--

Björn Holmgren







-