这样如何?
::══代══码══开══始═══
@echo off
for /f "tokens=2,* delims=:" %%i in ('ipconfig/all^|find "ip"') do (
for /f "tokens=* delims= " %%a in ("%%i") do echo %%a)
pause
::══代══码══结══束═══
@echo off
set "str= a b c d e f g "
for /f "tokens=2*" %%a in ("%str%") do echo %%b
pause