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

This is a discussion on Merging files (*.001, *.002 etc.) within the Windows Programming forums, part of the Platform Specific Boards category; I've got a problem with merging files. I don't know how to join files like: *.001, *.002 etc. from (for ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,767
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,598
    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 10: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
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,598
    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, 10:46 AM
  3. File I/O merging and adding
    By stevedawg85 in forum C++ Programming
    Replies: 4
    Last Post: 05-06-2006, 10:21 AM
  4. merging dll with .exe
    By johny145 in forum Windows Programming
    Replies: 8
    Last Post: 10-11-2005, 06:09 PM
  5. Help With Merging Sorted Lists of Strings
    By genjiguy in forum C++ Programming
    Replies: 3
    Last Post: 04-14-2005, 04:53 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21