Windows batch curl to variable Windows batch curl to variable selenium selenium

Windows batch curl to variable


Try this if directly using in console:

for /F %I in ('curl http://ipecho.net/plain') do set ip=%Iecho %ip%

or you can Try this if writing a batch script (.bat):

for /F %%I in ('curl http://ipecho.net/plain') do set ip=%%I    echo %ip%