- @echo off & cd /d "%~dp0"
- Setlocal EnableDelayedExpansion
- for /f "tokens=1,2 delims=|" %%a in ('type 1.txt') do set "\%%a=!\%%a!,%%b"
- for /f "tokens=1,2 delims==" %%a in ('set\') do (set "N1=%%a"&set "N2=%%b"&echo !N1:~1!^|!N2:~1!)
-
- echo;&pause
复制代码 ========================= |