Buenos dias gracias por leer el post quedaria algo como asi
@Echo off
Set "IP=192.168.76.55:8093"
:begin
netstat -a -n -o > temp.txt
FOR /F "tokens=2" %IP in ('"type temp.txt | find "%IP%""') do (
IF EQU %IP (
ECHO ping -n 10 localhost > nul
goto begin
) ELSE (
ECHO (Start H:\mi.bat)
)
@Echo off
Set "IP=192.168.76.55:8093"
:begin
netstat -a -n -o > temp.txt
FOR /F "tokens=2" %IP in ('"type temp.txt | find "%IP%""') do (
IF EQU %IP (
ECHO ping -n 10 localhost > nul
goto begin
) ELSE (
ECHO (Start H:\mi.bat)
)