Batch script - recovery service 3 times

Dani_S 4,836 Reputation points
2023-12-06T14:17:06.5066667+00:00

Hi,

It possible to do it batch script as seen in picture.

I used in maui app.

If yes how ?

this the creation of the service:

@ECHO OFF

echo Installer GS Automation Service

echo ---------------------------------------------------

sc.exe create "GS Automation Service" binpath="%~dp0\Service\AutomationClient.WorkerService.exe

pause

echo Done.

It possible to do itUser's image

Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Dani_S 4,836 Reputation points
    2023-12-06T14:57:46.8833333+00:00

    @ECHO OFF

    echo Installer GS Automation Service

    echo ---------------------------------------------------

    sc.exe create "GS Automation Service" binpath="%~dp0\Service\AutomationClient.WorkerService.exe" start= delayed-auto

    sc failure "GS Automation Service" reset= 30 actions= restart/300000

    pause

    echo Done

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.