Concatenate Binary Files in Windows

July 7th, 2008 by darreny Leave a reply »

Here’s something I had to use recently. It’s very basic, but hopefully helps someone. Of course in Unix this is much easier (the cat command). Use the following to concatenate two binary files on the Windows command prompt. In this example the two files are file1 and file2, with the destination of destfile:

copy /b file1+file2 destfile

or if there are spaces in the file names:

copy /b “file 1″+”file 2″ “dest file”

You can concatenate more than two files, just append them with the plus. Source.

Advertisement

5 comments

  1. Asia says:

    nerd

  2. Daisy says:

    ooohhh…you talking dirty again? hahaha!

  3. miltiadisp says:

    Thank you very much for the useful post!!!

  4. James says:

    Hey, thanks, Darren, that is very helpful. I’ll be sure to check out some more of your blog

  5. Matthias says:

    Indeed, that _was_ useful. Thanks.

Leave a Reply