|Here is what I have:|
FOR /F "tokens=3" %%A IN ('PING www.google.com -n 1 ^| find "Reply from"') DO SET output=%%A
The output that I get is an IP address with the : at the end - e.g., 126.96.36.199:
I need the IP address without the : at the end, e.g., 188.8.131.52
Any help will be much appreciated.