Now, execute the following command. copy *.txt newfile.txt Make sure to replace newfile.txt with the name of the merged file. This will do the job for you. Yusuf is an Engineering graduate from Delhi.