@echo off &setlocal enabledelayedexpansionfor /f "delims=" %%a in (test.txt) do (set "line=%%~a"set "no=!line:~0,2!"echo.%%a >> !no!.txt)