Elliott C. Back: In Aere Aedificare

Combine Split Files in Windows

Posted in Computers & Technology, Code, Microsoft by Elliott Back on March 10th, 2007.

I recently ran into an issue where I had about 7.5 GB of files split into 512M chunks downloaded from linux machine. The files had been generated using the split command:

split -b 512m files.tgz

This created the following files:

-rw-rw-rw- 1 user group 536870912 Mar 9 20:44 xaa
-rw-rw-rw- 1 user group 536870912 Mar 9 20:46 xab
-rw-rw-rw- 1 user group 536870912 Mar 9 20:49 xac
-rw-rw-rw- 1 user group 536870912 Mar 9 20:51 xad
-rw-rw-rw- 1 user group 536870912 Mar 9 20:53 xae
-rw-rw-rw- 1 user group 536870912 Mar 9 20:55 xaf
-rw-rw-rw- 1 user group 536870912 Mar 9 20:57 xag
-rw-rw-rw- 1 user group 536870912 Mar 9 20:59 xah
-rw-rw-rw- 1 user group 536870912 Mar 9 21:01 xai
-rw-rw-rw- 1 user group 536870912 Mar 9 21:03 xaj
-rw-rw-rw- 1 user group 536870912 Mar 9 21:05 xak
-rw-rw-rw- 1 user group 536870912 Mar 9 21:07 xal
-rw-rw-rw- 1 user group 536870912 Mar 9 21:09 xam
-rw-rw-rw- 1 user group 536870912 Mar 9 21:12 xan
-rw-rw-rw- 1 user group 222082405 Mar 9 21:13 xao

I wanted to combine them in windows and looked around for a while until I realized you can use Microsoft’s copy utility in binary mode!

copy /b xa* files.tgz /b

Now I’m all done! Hurray for built-in utilities.

This entry was posted on Saturday, March 10th, 2007 at 1:55 pm and is tagged with rw 1, split files, hurray, user group, chunks, xa, gb, linux, microsoft. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback.

4 Responses to 'Combine Split Files in Windows'

  1. Fred said:

    on March 12th, 2007 at 11:56 pm

    Why do you need the /b flag twice?

  2. Elliott Back said:

    on March 13th, 2007 at 7:10 am

    Binary in, binary out.

  3. David said:

    on March 13th, 2007 at 5:40 pm

    Great tip :)

  4. nod said:

    on April 2nd, 2008 at 8:23 pm

    Awesome tip!

Your Thoughts Go Here:

Powered by WP Hashcash