Click here to Skip to main content
12,756,679 members (32,100 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as


1 bookmarked
Posted 7 Sep 2013

Joining Binary Files from a bat File Without Extra Programs

, 12 Sep 2013 CPOL
Rate this:
Please Sign up or sign in to vote.
How to join binary files without extra software


Probably you will have received a set of files that are separated/split (like when you have multiple volumes in a ZIP or RAR file) but that have not been generated through a compression tool.

In those cases, usually the sender recommends to use HJSplit to join those files.

Here you will find a simple batch file sample on how to do that without any program. Simply form the CMD.

Using the Code

As you will see, this is only a special syntax for the copy command in Windows.

In that case, you will take advantage of the /B modifier which indicates copy that the file is binary.

Also, you will use the + sign to join files:

copy filename.iso.001 /B + filename.iso.002 /B filename.iso /B


After executing the previous snippet, you'll get a new file named "filename.iso" which will be the addition of two binary files filename.iso.001 and filename.iso.002.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Joan M
Chief Technology Officer robotecnik
Spain Spain
I'm from Catalonia (in Spain) and a specialist in CNC, PLC, robotics and automation in general.

From 1998 I've been developing software applications for the automation market.

I'm using different technologies in each case to get the proper result, fieldbus communications, special electronics, special laser sensors, artificial vision, robot arms, CNC applications, PLC's...[^] - robots, CNC and PLC programming

You may also be interested in...


Comments and Discussions

GeneralMy vote of 5 Pin
kast21817-Sep-13 6:33
memberkast21817-Sep-13 6:33 
GeneralRe: My vote of 5 Pin
Joan Murt17-Sep-13 6:46
professionalJoan Murt17-Sep-13 6:46 
QuestionHas this been there right from good old DOS days? Pin
TinyDevs12-Sep-13 0:31
professionalTinyDevs12-Sep-13 0:31 
AnswerMessage Removed Pin
Joan Murt12-Sep-13 1:44
memberJoan Murt12-Sep-13 1:44 
GeneralRe: Has this been there right from good old DOS days? Pin
TinyDevs12-Sep-13 2:17
professionalTinyDevs12-Sep-13 2:17 
GeneralRe: Has this been there right from good old DOS days? Pin
Joan Murt12-Sep-13 2:32
memberJoan Murt12-Sep-13 2:32 
AnswerRe: Has this been there right from good old DOS days? Pin
Joan M31-Jan-17 7:49
professionalJoan M31-Jan-17 7:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170217.1 | Last Updated 12 Sep 2013
Article Copyright 2013 by Joan M
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid