How To Stitch Two or More Files Together Using Copy – Windows

Here’s a neat trick to use if you have to combine two or more text files together from the command line. I use this to put my website access logs together into one file for processing. I first put all the files into one directory called access. Then I run the command:

copy access\*.* access.log

This copies all the files in the access directory into the file “access.log”.


Leave a Reply