::CHECK-agendador-service-is-running
::
@ECHO OFF

::TASKKILL NOTEPAD
::TASKKILL prunsrv
::TASKKILL prunsrv

START "" "C:\CompusisExe\InstalaServX64\prunsrv.exe"

:LOOP
tasklist | find /i "prunsrv" >nul 2>&1
IF ERRORLEVEL 1 (
  GOTO CONTINUE
) ELSE (
  ECHO CompusisAgendador is still running
  Timeout /T 5 /Nobreak
  GOTO LOOP
)

:CONTINUE
::NOTEPAD
::CompusisAgendador

By admin

Leave a Reply

Your email address will not be published.