Link to home
Start Free TrialLog in
Avatar of chetan1981
chetan1981

asked on

bat file to merge text files

Hi,

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

Thanks
SOLUTION
Avatar of nathana21
nathana21
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of broeste
broeste

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
how would i merge a file header.txt to all *.txt files in the same directory?