It is necessary to determine the computer in the network, to which the longest route .
That is, the maximum value of the last column and the network address, as I understand it. If someone masters, I will be grateful for the help.
Screen: business cat http://freshall.com/img/2017-02/27/qmnsvs7q3d2so6a41dh5hs54b.png
My version:
@echo off for /f "eol== tokens=5" %%i in ('route print ^|findstr /rc:"[0-9]$"') do if %%m%% LSS %%i set m=%%i echo "Max value: "%m% pause
длина маршрутаis the number of hosts through which the packet passes to achieve the final goal - Anton Shchyrov