Computer Hope


Computer Hope Forum Welcome, Guest. Please login or register.
February 09, 2010, 02:03:15 PM
Home Help Staff Chat Login Register
News: Need help with posting a question?

Computer Hope - Computer Help Forums  >>  Microsoft  >>  Microsoft DOS (Moderator: Computer Hope Admin)  >>  Topic: Append the contents of one text file to the end of another text file. 0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] - (Bottom) Print
Author Topic: Append the contents of one text file to the end of another text file.  (Read 2996 times)
Tim_C
Topic Starter
Greenhorn
*
Posts: 8

Thanked: 0


« on: June 26, 2008, 02:25:23 PM »

How do I append the contents of one text file to the end of another text file?

I have two text files, A.txt and B.txt.  I want to append the contents of B.txt to the end of A.txt.

NOTE:  I have search the word "append" but apparently there is a APPEND command some how similar to the PATH command.   This is not what I am looking for.


Microsoft Windows XP [Version 5.1.2600]
Logged
Tim_C
Topic Starter
Greenhorn
*
Posts: 8

Thanked: 0


« Reply #1 on: June 26, 2008, 04:16:04 PM »

Also,

Help files indicate the COPY command will append my files together with the "+" function.  I have had no success with this command either.

COPY  A.txt + B.txt     A.txt
COPY  A.txt    B.txt  + A.txt
COPY  A.txt + B.txt

Also, I am doing this in a batch file.  Perhaps this makes a difference.

Tim C
Logged
Tim_C
Topic Starter
Greenhorn
*
Posts: 8

Thanked: 0


« Reply #2 on: June 26, 2008, 04:28:36 PM »

New Information

I have been able to perform the APPEND at the DOS command line but not within the batch file.

Logged
Dusty
Egghead
*
Posts: 3141

Thanked: 44
OS: Windows XP
Experience: Beginner



Country music Rocks.


« Reply #3 on: June 26, 2008, 08:50:58 PM »

TYPE B.TXT>>A.TXT  should append b.txt to a.txt (caps are for emphasis only)

Copy a.txt+b.txt requires a new output file, a file cannot be copied onto itself.
e.g. copy a.txt+b.txt c.txt   (c.txt would contain the appended files.)

This is not a recognized use for the Append command, enter Append/? at the Command Prompt to check the syntax.

Good luck
Logged

Light travels faster than sound.  This is why some people appear bright until you hear them speak.
Tim_C
Topic Starter
Greenhorn
*
Posts: 8

Thanked: 0


« Reply #4 on: June 27, 2008, 06:36:21 AM »

Dusty,

Thank you.  The TYPE command works.

Tim
Logged
Dusty
Egghead
*
Posts: 3141

Thanked: 44
OS: Windows XP
Experience: Beginner



Country music Rocks.


« Reply #5 on: June 27, 2008, 03:44:15 PM »

Thanks for coming back to report your success..  Another winner..

Logged

Light travels faster than sound.  This is why some people appear bright until you hear them speak.
jdd
Newbie
*
Posts: 1

Thanked: 0
OS: Windows XP
Experience: Experienced


« Reply #6 on: January 06, 2009, 09:11:42 AM »

Would a perl script to combine multiple files work faster? I have to combine 4 files that are at least a gig into one file.
Logged
Dias de verano
Guest
« Reply #7 on: January 06, 2009, 03:39:58 PM »

Would a perl script to combine multiple files work faster? I have to combine 4 files that are at least a gig into one file.

I shouldn't think so. It's just a different way of manipulating the filesystem.
Logged
Pages: [1] - (Top) Print 
Computer Hope - Computer Help Forums  >>  Microsoft  >>  Microsoft DOS (Moderator: Computer Hope Admin)  >>  Topic: Append the contents of one text file to the end of another text file. « previous next »
Jump to:  


Login with username, password and session length

Old Forum Search | Forum Rules
Copyright 1998-2010 by Computer Hope (tm). All rights reserved
Powered by SMF 1.1.8 | SMF © 2006-2008, Simple Machines LLC
Page created in 2.083 seconds with 18 queries.