1 2 3 4 5 6 |
@echo off for /f "tokens=1,2* delims=:" %%i in (' ipconfig ^| find "IP" ') do set dirip=%%j set dirip=%dirip:~1% echo %dirip% pause exit |
1 2 3 4 5 6 |
@echo off for /f "tokens=1,2* delims=:" %%i in (' ipconfig ^| find "IP" ') do set dirip=%%j set dirip=%dirip:~1% echo %dirip% pause exit |