for /f %%a in (input.txt) do (set /a OUTPUT_NUM=%%a+1echo %%a %OUT_NUM%>>output.txt)del input.txtmove output.txt input.txt