It is save to terminate the services using taskkill when the attempt to stop using NET STOP was failed? And if i terminate it using taskkill, do NET START command will affect or do i need to use START command?
consider this code as example:
@ECHO OFF
:STOP
NET STOP someservices
IF ERRORLEVEL == 0 GOTO :START
GOTO :KILL
:START
NET START someservices
:KILL
TASKKILL /F /IM someservices.exe
SLEEP 10
START someservices.exe