CODE: [Copy to clipboard]@echo off :aa set /a z+=1 copy /y %z%aa.txt+%z%bb.txt %z%cc.txt if "%errorlevel%"=="1" exit /b goto aa