Page 1 of 1
(SOLVED) Merging files .bat
Posted: 30 Aug 2010 13:37
by jmituzas
I have a file called header.txt I want this file to be prepended (first line) to all *.txt files in the same directory.
How could I achieve this?
Thanks in advance,
Joe
Re: Merging files .bat
Posted: 30 Aug 2010 22:07
by orange_batch
I solved your second question in the previous thread, so I'm not going to write you a solution for this, unless it really is a new question. It's not hard but still a little more complicated, especially if header.txt contains multiple lines.
Re: Merging files .bat
Posted: 31 Aug 2010 04:30
by ghostmachine4
jmituzas wrote:I have a file called header.txt I want this file to be prepended (first line) to all *.txt files in the same directory.
How could I achieve this?
Thanks in advance,
Joe
you can just use the >> redirection operator, the type command.