We help IT Professionals succeed at work.

New podcast episode! Our very own Community Manager, Rob Jurd, gives his insight on the value of an online community. Listen Now!

x

bat file to merge text files

chetan1981
chetan1981 asked
on
8,265 Views
Last Modified: 2008-09-11
Hi,

How do I merge two text files into a single file. I am trying to write a bat script for that.

Thanks
Comment
Watch Question

Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Commented:
I have tried the above and gets the right output into the result file. How would you do it if you needed the out put to be presented like this in the result file??

output1/output2

I need the 2 outputs to be listed with output1/output2

Commented:
how would i merge a file header.txt to all *.txt files in the same directory?
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.