Advertisement‎ > ‎

Find the current TCP/IP.cmd

posted Feb 3, 2011, 3:11 PM by Roberto Felicini
IPCONFIG |FIND "IP" > %temp%\TEMPIP.txt
FOR /F "tokens=2 delims=:" %%a in (%temp%\TEMPIP.txt) do set IP=%%a
del %temp%\TEMPIP.txt
set IP=%IP:~1%
echo %IP% >%temp%\ip.txt
echo The current IP address is "%IP%"
Msg * "The current IP address is "%IP%""
Comments