Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Possible Duplicate:
Any command-line or batch cmd to concatenate multiple files?

I have over a thousand text files which I would like to combine into a single text file, is there any way to do this automatically?

share|improve this question

marked as duplicate by slhck Jul 26 '12 at 11:21

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
Are they all in the same directory? Do you have a list of the all the files? –  Nifle Jul 26 '12 at 11:08
    
They are all in the same directory and I don't have a list of the file names. –  CLiown Jul 26 '12 at 11:10
    
Then JC2k8's answer should do what you need. Don't forget to come back and accept it later if it does. –  Nifle Jul 26 '12 at 11:12

1 Answer 1

up vote 3 down vote accepted

Pull out your command line and let's go:

copy /a *.txt concat.txt

This will concatenate all txt files in the same directory into one file named "concat.txt".

/A indicates an ASCII text file

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.