us0r
cd\
setlocal enabledelayedexpansion
chcp 1251>nul
for /f "skip=1 tokens=1-2* delims= " %%a in ('netsh interface ip show address') do (
set "var=%%~c"
set "var=!var:"=!"
goto:exit
)
:exit
echo.%var%
pause
а... у тебя много lan'ov - тогда
cd\
setlocal enabledelayedexpansion
chcp 1251>nul
for /f "tokens=1-2* delims= " %%a in ('netsh interface ip show address ^|find /i "настройка"') do (
set "var=%%~c"
set "var=!var:"=!"
goto:exit
)
:exit
echo.%var%
pause
cd\
setlocal enabledelayedexpansion
chcp 1251>nul
for /f "skip=1 tokens=1-2* delims= " %%a in ('netsh interface ip show address') do (
set "var=%%~c"
set "var=!var:"=!"
goto:exit
)
:exit
echo.%var%
pause
а... у тебя много lan'ov - тогда
cd\
setlocal enabledelayedexpansion
chcp 1251>nul
for /f "tokens=1-2* delims= " %%a in ('netsh interface ip show address ^|find /i "настройка"') do (
set "var=%%~c"
set "var=!var:"=!"
goto:exit
)
:exit
echo.%var%
pause