Possible Duplicate:
Any command-line or batch cmd to concatenate multiple files?
I have over a thousand text files which I would like to combine into a single text file, is there any way to do this automatically?
Possible Duplicate:
Any command-line or batch cmd to concatenate multiple files?
I have over a thousand text files which I would like to combine into a single text file, is there any way to do this automatically?
Pull out your command line and let's go:
copy /a *.txt concat.txt
This will concatenate all txt files in the same directory into one file named "concat.txt".
/A indicates an ASCII text file
/a or /A option seems to be less useful then expected. I'm getting garbage line feeds in the concatenated file after the first file. Maybe this option is now outdated because many of alternative formats are around: you mostly think it's ASCII, but it isn't /b will do, if the last line ends with linefeed.
– Wolf
Mar 27 '15 at 10:46