@echo off cd /d "%~dp0" (for /f "tokens=1-3 delims=^|" %%a in ('type "1.txt"') do ( echo %%b^|%%c^|%%a ))>"2.txt"复制代码