I would like to extract just the IP address from a batch file in Windows.
Matt M posted a solution to print just the line that contains the IP address.
How to get only the reply line of a ping test on Windows
(for /f "skip=3 tokens=*" %F in ('ping -n 1 mysite.duckdns.org') do @if not defined _A @echo %F&set _A=0) &set "_A="
What I would like to do next is take the IP address and execute...
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" " https://'IP address found in line above'"
I use duckdns and when I try to go to the secure web server I get the duckdns secure site.
https://mysite.duckdns.org does not go to my webserver.