Thread: Merging files (*.001, *.002 etc.)

  1. #1
    Registered User
    Join Date
    Jul 2010
    Posts
    3

    Merging files (*.001, *.002 etc.)

    I've got a problem with merging files. I don't know how to join files like: *.001, *.002 etc. from (for example) Total Commander using C++. Have you hot any ideas or suggestions?

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Assuming you can figure out the original file extension, try something like this:

    copy /b part.001 + part.002 part.zip

    In other words, you simply concatenate all the fragments together.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    If you want more control over the merge process and the files are non-binary (IE: extracted from the zip) you can look into WinMerge. I also recommend it for a source code merge tool.
    Last edited by VirtualAce; 07-11-2010 at 09:36 AM.

  4. #4
    Registered User
    Join Date
    Jul 2010
    Posts
    3
    Quote Originally Posted by Bubba View Post
    If you want more control over the merge process and the files are non-binary (IE: extracted from the zip) you can look into WinMerge. I also recommend it for a source code merge tool.
    Where I find source code merge tool? I can't find.

    PS: I make it in Qt

  5. #5
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    What? Google for WinMerge.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Merging arrays help
    By key4life in forum C Programming
    Replies: 12
    Last Post: 12-05-2009, 06:46 PM
  2. Replies: 0
    Last Post: 07-31-2009, 09:46 AM
  3. File I/O merging and adding
    By stevedawg85 in forum C++ Programming
    Replies: 4
    Last Post: 05-06-2006, 09:21 AM
  4. merging dll with .exe
    By johny145 in forum Windows Programming
    Replies: 8
    Last Post: 10-11-2005, 05:09 PM
  5. Help With Merging Sorted Lists of Strings
    By genjiguy in forum C++ Programming
    Replies: 3
    Last Post: 04-14-2005, 03:53 PM