Page 1 of 1

combining two text files

Posted: Thu Mar 25, 2004 11:04 pm
by lauraselva
how to merge two text files using dos command is ther any dos command that appends one file to teh end of another file

Combining text files

Posted: Tue Mar 30, 2004 5:51 am
by Bertil E
Use the command COPY to append files in a DOS window:
COPY A.TXT + B.TXT C.TXT
This line will create the file C.TXT from the files A.TXT and B.TXT

Posted: Wed Dec 01, 2004 10:19 pm
by JussiJ
This will also do it:

Code: Select all

type a.txt > c.txt
type b.txt >> c.txt
The > creates the c.txt file while the the >> appends to the file.