I\'m writing a simple script to retreive my localhost address given as IP.
To get my IPv4 address (Win7) I\'ve written simple FOR loop, but as a result i get the IP
Also code with @aschipfl :SKIP solution
:SKIP
for /f "tokens=1-2 delims=:" %%a in ('ipconfig^|find "IPv4"') do ( set ip=%%b goto :SKIP ) :SKIP set ip=%ip:~1% echo %ip%