@echo offsetlocal enabledelayedexpansionfor /脊皮f %%i in (a.txt) do (set /a n+=1set #!n!=%%i)set n=(for /f "tokens=1,2" %%i in (b.txt) do (set /樱伏差厅核a n+=1call echo %%i %%#!n!%%))>temp.txtmove /y temp.txt b.txt