CODE: [Copy to clipboard]for /f "tokens=1 delims= " %%i in ('route print ^| findstr -i /C:"WAN(PPP/SLIP)"') do echo %%i