CODE: [Copy to clipboard]@echo off&setlocal enabledelayedexpansion for /f "delims=" %%i in (a.TXT) do ( set /a m+=1 echo %%i>a_!m!.txt )