MS DOS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Web Development Archives FAQs MS DOS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Web Development Archives Sponsor:
  #1  
Old July 30th, 2008, 03:06 AM
vinoth124 vinoth124 is offline
Registered User
Dev Archives Newbie (0 - 499 posts)
 
Join Date: Jun 2008
Posts: 2 vinoth124 User rank is Just a Lowly Private (1 - 20 Reputation Level)  
Time spent in forums: 10 m 39 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old July 30th, 2008, 08:31 PM
myworldplz myworldplz is offline
Registered User
Dev Archives Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 6 myworldplz User rank is Just a Lowly Private (1 - 20 Reputation Level)  
Time spent in forums: 2 h 25 m
Reputation Power: 0
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. :)

Reply With Quote
Reply

Viewing: Web Development Archives FAQs MS DOS > How to combine two file using DOS?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek