CODE: [Copy to clipboard]@echo off for /f "delims=" %%i in ('dir/b *.txt') do if not "%%i"=="b.txt" more b.txt>"%%i"