命令窗口:
for /f "delims=: tokens=2" %i in (‘ipconfig ^|findstr -i "ipv4"‘) do (set v=%i)
脚本是:
for /f "delims=: tokens=2" %%i in (‘ipconfig ^|findstr -i "ipv4"‘) do (set v=%%i)
时间: 2024-12-16 07:56:07
命令窗口:
for /f "delims=: tokens=2" %i in (‘ipconfig ^|findstr -i "ipv4"‘) do (set v=%i)
脚本是:
for /f "delims=: tokens=2" %%i in (‘ipconfig ^|findstr -i "ipv4"‘) do (set v=%%i)