Ask Leo!

How can I rejoin two files into one?

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 2868 | Posted March 1, 2005

Recent Comments
0 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

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)

New!

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

Before commenting, please...

Please wait. Your comment is being processed ...


Ask Your Question:


ask-leo.com
Web

Stay Informed

Weekly Newsletter

Archives

By Category
By Date

Advertisers

Advertise on Ask Leo!

««   »»

Question? - Ask Leo!
Who is Leo?
Link to Leo!

Terms, Conditions & Privacy