Usually, when pinging a server IP address we have this in return:
Pinging with 32 bytes of data: Reply from : bytes=32 time=151 TTL
You can combine findstr command with the skip lines option of for:
C:\>ping 127.0.0.1 | for /f "skip=3 tokens=*" %a in ('findstr Reply') do @echo %a
Output is:
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Change %a to %%a if writing a batch file.
%a
%%a