Windows – way to combine text files using the Windows command line

command linemergewindows

I am thinking looking for a way to combine all the .txt files in a directory into a single one .txt file.

Is there a way to combine text files using the Windows command line?

Best Answer

You can also use the copy command, eg

copy *.js bigfile.txt

or, for specific files

copy file1.txt+file2.txt+file3.txt bigfile.txt