lihui612ld 当前离线
上等兵
idwma 当前离线
少校
@echo off setlocal enabledelayedexpansion for /f "delims=" %%i in (a.txt) do ( set /a n+=1 set a.txt.!n!=%%i ) set n= for /f "delims=" %%i in (b.txt) do ( set /a n+=1 set b.txt.!n!=%%i ) for /l %%i in (1,1,%n%) do echo !a.txt.%%i! !b.txt.%%i! pause复制代码
TOP
qixiaobin0715 当前离线
大校
评分人数
@echo off (for /f "delims=" %%a in (a.txt) do ( endlocal set/p =%%a<nul setlocal enabledelayedexpansion set /p t2= if defined t2 echo;!t2! ))<b.txt pause复制代码
@echo off setlocal enabledelayedexpansion (for /f %%a in (a.txt) do ( set /p str= echo,%%a !str! ))<b.txt pause复制代码