CODE: [Copy to clipboard]@echo off for /f "tokens=1-3 delims= " %%a in (a.txt) do ( echo %%b^|%%a^|%%c ) pause