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
And what about this code without any loop ?
@Echo off For /f "tokens=2 delims= " %%a in ('arp -a ^|findstr /i "Interface"') do (set IP=%%a) Echo The IP adress is : %IP% pause