Random Project

Mostly works, had to make one fix

This plugin seems to work ok, but it does fail if the device you’re pinging completely vanishes. This causes the ping command to return a destination host unreachable error the the script can’t handle it and returns bad data (error code 255). I believe I have fixed this by adding these lines after the “Special handler for TTL” section:

REM ######## special handler for complete loss #######
FOR /F “tokens=3 delims= ” %%k in (‘findstr /c:”Destination host unreachable” %randomfilename%’) do (
set LST=100
set AVG=1000
)

I’ve tested this on my system and it seems to work now instead of kicking back bad data.