@echo off>temp.txt set files=a.txt b.txt c.txt for %%a in (%files%) do (echo.>>temp.txt&type "%%a">>temp.txt)