Windows provides a simple way to concatenate multiple text files into one. To do this, open the Windows File Explorer and navigate to the folder containing the text files you want to combine. Right-click on one of the files and select “Copy.” Then, open the Windows File Explorer and navigate to the folder where you want to paste the combined file. Right-click on the combined file and select “Paste.” ..
Answer: Pull out your DOS hat, open a command prompt, and then use the “for” command.
The syntax works something like this:
So if you wanted to append all of the *.log files in a directory, you’d use the “type” command and then pipe it into a single file using the » operator.
The difference between » and > is that the former appends data to the end of the file, and the latter will completely replace the file, which would be pointless for what we want to do.
So here’s the command you’d run, assuming you are in the directory containing the log files.
And yes, I actually just used this command for a project at work, which is why I’m writing up this article. =)
Random thought: What on earth would a DOS hat look like?