Click here to Skip to main content
12,070,030 members (53,410 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

Stats

10.9K views
1 bookmarked
Posted

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

Introduction

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

pause

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.

License

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

Share

About the Author

Joan Murt
Chief Technology Officer
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 special machines we make.

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...

You can see some of my work here: www.tamautomation.com

And some videos in our YouTube channel

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 
AnswerRe: Has this been there right from good old DOS days? 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 

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.

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.160208.1 | Last Updated 12 Sep 2013
Article Copyright 2013 by Joan Murt
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid