Can anyone help me?i have tried it in many ways but i was unsuccessful. i tried setting a variable p and increasing the value of p by ping command and displaying value of new p.
@echo off
set p = 0
%p% = ping -n 10 8.8.8.8 | find /c "TTL="
echo p = %p%
pause