Computer Hope

Microsoft => Microsoft DOS => Topic started by: taylormade on February 22, 2009, 02:44:41 PM

Title: what Batch Code will help me here
Post by: taylormade on February 22, 2009, 02:44:41 PM
I have a .txt file (txt1.txt) that has data in it.
I want to add the contents of another text file (txt2.txt) AFTER the data in txt1.txt;
In other words, add the contents of txt2.txt to txt1.txt.
What batch file commands will do that?
 
Title: Re: what Batch Code will help me here
Post by: BC_Programmer on February 22, 2009, 02:58:40 PM
copy file1.txt+file2.txt result.txt
Title: Re: what Batch Code will help me here
Post by: devcom on February 22, 2009, 03:10:36 PM
or
Code: [Select]
type file2.txt >> file1.txt
Title: Re: what Batch Code will help me here
Post by: taylormade on February 22, 2009, 05:48:29 PM
both acceptable ..
Thank you to all.
bob