osp2008,
Код:
Echo off & Chcp 1251
:loop
Set $SRC="F:\info.txt" & rem твой файл
for /f %%a in (%$SRC%) do call :check "%%~ta"
:check
set $in=%~1
set $tr=%$in:~14,2% & set $tm=%time:~3,2%
if %$tm% lss 10 set $tm=%time:~4,1%
if %$tr% lss 10 set $tr=%$in:~15,1%
set /a "$ch= %$tm% - %$tr%"
If %$ch% LSS 0 set /a $ch=60-(%$ch%*(-1))
if /i %$ch% GEQ 30 net send "имя" "Warnig - connection was fall"
if /i %$ch% GEQ 15 ((
taskkill /f /im fm.exe
ping -n 5 localhost>nul
start /b fm.exe))
ping -n 100 localhost>nul & rem 100 - задержка в цикле
goto loop