|
|
|
|
|||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to combine two file using DOS?
Hi Friends,
I need to combine two text file to one file. For example: a.txt file contains Old is gold All the best b.txt file contain World war Happy bday I need the output in c.txt. That o/p file should contain Old is gold All the best World war Happy bday Note: When I tried with the command copy a.txt+b.txt c.txt which gives o/p as Old is gold All the bestWorld war Happy bday Actually I need the "World war" should add in new line... Is it possible in DOS. If so will you please help me to resolve this issue..., Thanks In Advance. Thanks, Vinoth R |
|
#2
|
|||
|
|||
|
Simply Solution
Well heres an answer
Code:
echo filenamehere.txt >> newcombinedfile.txt echo filenamehere2.txt >> newcombinedfile.txt The '>>' simply creates a continues line. Example: echo hi >> test.txt echo whats up? >> test.txt Contents of test.txt: hi whats up? Try that. :) |
![]() |
| Viewing: Web Development Archives > FAQs > MS DOS > How to combine two file using DOS? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|