The tracert is executed only in ipv4 and without name resolution to get a consistent number of columns in the output, the eigth colum/token is selected (where the ip address is shown) and directly the value in the variable is echoed.
The tracert is executed only in ipv4 and without name resolution to get a consistent number of columns in the output, the eigth colum/token is selected (where the ip address is shown) and directly the value in the variable is echoed.