DOS command to concatenate files

for /F %f in (list.txt) do (echo %f >> newfile.txt & type %f >> newfile.txt & echo. >> newfile.txt)

Advertisements