Ask Leo! by Leo A. Notenboom

How can I rejoin two files into one?

Search First! Then browse: Categories | Full Archive | By Date | Newsletter

Home » Windows

Summary: Not only is it possible to rejoin two files into one, you already have the tool on your machine to do so.

I split a file a while ago. I don't have a copy of the program used and I can't remember what it was. All I know is that it split the 2 files into segments ending in ".1" and ".2". Is there a program out there that will universally rejoin files? Or do I have to keep hunting 'til I find the program that I used?

The term for what you're attempting to do is called "concatenation" - basically splicing two files together to create a single file.

And the tool's already on your machine.

The copy command in Windows will do it.

In a command shell:

copy file1 /b + file2 /b file3

Will join file1 and file2 to create file 3. The "/b" indicates that Copy should treat the file as binary rather than text.

Article C2295 - March 1, 2005

Helpful? Get new articles weekly by email in my FREE newsletter!

Your Name:
Your Email:


Why Subscribe?

Recent Comments
3 Comments

Greatings.
I would like to suggest an easier way to do the same process.

Do just like this at the directory where pieces are:
copy/b 01.ca1+02.ca2+03.ca3+04.ca4 wimamp.exe
Where: first piece+2nd_3rd+4th and else,equals the final file name splited, which name you are supposed to previously know.

For example I splited Winamp.
System will act then:

D:\Util\Win-util\Splitters\Fsplit>copy/b 01.ca1+02.ca2+03.ca3+04.ca4 wimamp.exe
01.CA1
02.CA2
03.CA3
04.CA4
1 files) copyed(s).

Posted by: Nule at March 2, 2005 11:32 PM

Can u please tell me how can I split the files when I joined files with copy /b

Hemant

Posted by: Hemant at March 22, 2005 8:03 AM

i use file splitter & joiner 3.1 for problems like yours.. its just a small apps.

Posted by: Keivn at October 27, 2008 3:47 AM

Post a comment on "How can I rejoin two files into one?":






(Email Address will not be published.)

Remember Me?

By popular demand...
my tip jar
Cuppa Joe
Buy Leo a Latte!

(you may use HTML tags for style)

RSS feed Subscribe to the RSS Feed specifically for comments on this article.

Before commenting, please...

  • Read the article at the top of this page. If your comment shows you didn't, it'll be deleted and ignored.

  • Comment only on this article. Use the Google search box at the top of the page if you have a question about something else.

  • Don't include personal information in the comment. No email addresses. No phone numbers. No physical addresses.

  • Don't spam. Excessive links to unrelated sites within a comment or across multiple comments will cause all such comments to be removed.

  • Don't ask me to recover lost passwords or hacked accounts. I can't, and those comments will be deleted.

  • I can't respond to every comment. And I can't vouch for the accuracy of others who do.

Please wait. Your comment is being processed ...


Question? Ask Leo!