|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., 22.214.171.124:
I need the IP address without the : at the end, e.g., 126.96.36.199
Any help will be much appreciated.