CODE: [Copy to clipboard]for /f "tokens=2 delims=:" %%a in ('ipconfig^|find /i "ip address"') do echo/%%a>>ipconfig.txt