Combine Split Files in Windows
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. |
15 Responses to “Combine Split Files in Windows”
Leave a Reply


Why do you need the /b flag twice?
Binary in, binary out.
Great tip
Awesome tip!
This is excellent. Thank you!
Great! Exactly what i am looking for!
Thanks!
it worked!
Great tip. You saved the day for me. Thanks.
I’m getting not enough space where the hd space has 209gb free space and the total files to be combined is only 10gb.
Thanks! Much oblieged
I was looking and only could find free/proprietary software to do something I was almost certain it could be done in the prompt command
You saved my day !!!
Good one. Thanks for the tip.
Thanks! Absolutely awesome command, I’ve spent 2 hours messing around with duff alternatives and this worked instantly
Many thanks… Really a great tip.
Thanx for the tip !
Until now i used the CombineFiles-command of TotalCommander, which also works fine, but the “copy”-version is more elegant!
it needs to be done on a NTFS file system
FAT32 does not recognize files bigger than 4Gb