Computing.Net > Forums > Programming > how to merge 2 txt files using batch script

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

how to merge 2 txt files using batch script

Reply to Message Icon

Name: Programmer
Date: July 21, 2009 at 04:09:55 Pacific
OS: Windows XP
Subcategory: Batch
Comment:

Hi
I have 2 text files - Customer1.txt and Customer2.txt.
Both files have same data format.
i need to merge these 2 files such that data from Customer2.txt is appended to data from Customer1.txt and a new file Customer.txt is created.
The newly created file has to be moved to a specific location.

Also is it possible to send an email incase any of the file is missing.

Appreciate any help on this

Rgds
Nirav



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: July 21, 2009 at 04:50:51 Pacific
Reply:

type Customer1.txt>> \some\place\Customer3.txt
type Customer2.txt>> \some\place\Customer3.txt

To email, you need a command line emailer.


=====================================
If at first you don't succeed, you're about average.

M2


0
Reply to Message Icon

Related Posts

See More


triggering another progra... Copy folders, rename file...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: how to merge 2 txt files using batch script

How to create a text file using FSO www.computing.net/answers/programming/how-to-create-a-text-file-using-fso/10319.html

How to combine 2 assembly files tog www.computing.net/answers/programming/how-to-combine-2-assembly-files-tog/10699.html

Merge txt files without appending www.computing.net/answers/programming/merge-txt-files-without-appending/13476.html