Fala Pessoal. Gostaria of saber or that you take the cotdigo funcionar. Obrigado

echo MONITOR OF ERRO BKUP SQL

@echo on

:: have a meeting
for / F "tokens = 1-3 delims = /" %% i in (date / t ") do (

set dd = %% i
set mm = %% j
set yy = %% k

)

there is "% temp% sqldump_elapsed_time% yy %% mm% .txt" (

set / p sqldump_elapsed_time = <"% temp%  sqldump_elapsed_time% yy %% mm% .txt"

set / a "tempolimite = (sqldump_elapsed_time * 2) + 60"

set / a "count = 0"

pause

: DELAYFUNCTION
if account LEQ tempolimite (

                otherwise, "% temp%  sqldump_bkcup_confirm.txt" (
TIMEOUT 1 / nobreak
set / a "account = account + 1"
echo% count%
echo% tempolimite%
goto: DELAYFUNCTION
)

if there is "% temp%  sqldump_bkcup_confirm.txt" (
set / p verificador = <"% temp%  sqldump_bkcup_confirm.txt"
if verifier == "ok" (
echo Backup Confirmado - Fechar Programa
pause
exit / b
)
)
)

)

"% temp% ver.txt" echo% verificador%
echo Backup ERRO – KILL no CMD
pause
REM ESCREVER FUNCÃO TASKKILL CMD.EXE (PROCURAR COMO ESCREVE)

exit / b