Using SC to install a windows service and then set recovery properties Using SC to install a windows service and then set recovery properties windows windows

Using SC to install a windows service and then set recovery properties


This syntax seems to work:

sc failure MyService command= "\"c:\program files\myservice\myservice.exe\""