Combine multiple files into a single file is very simple on Windows as long as the files you are wanting to combine are text (binary). Its not possible to merge multiple images, videos and other none binary related content using this method. Here is the Command Prompt (cmd) command we will be using to achieve this.
| 1 | copy /b *.txt combined.txt | 
We must use the /b attribute which tells the copy command that we are working with binary files. We then provide the file we wish to copy which in are case is “*.txt” which means every file which has the ending extension “.txt” and then the new location which is “combined.txt”.
You can replace .txt with what ever file extension is being used by your files and also change the name from combined.
Walkthrough
First we need to lunch Command Prompt (cmd) by going to “Start ->All Programs -> Accessories -> Command Prompt”.
This may differ slightly on other Windows versions as I am suing Windows 7.
Now browse to the location where the files you want to combine are stored and click on the navigation bar. It is the area highlighted in red in the image below. You want to copy the text inside by “right clicking -> Copy”.
Now go to the cmd screen we loaded up at the beginning (the black console screen) and type
| 1 | cd “ | 
Now either right click on the console screen or press the “INSERT” key located on the keyboard just above the arrow keys to insert the text we copied earlier. Now we need to add a ending ” character.
| 1 | “ | 
Now press the enter key (return key) and your screen should now look something like the following.
We have now moved the cmd window into the directory where we have stored the files we wish to combine. All you now have to do is run the copy command located at the top of this post. Here is an example of how my screen looked once I had run the copy command above but replaced the .txt with .log.
I now have a new file called combined.log which contains all the contents from the other files but in the single file.






Leave a Reply