How to merge directories / files from first to second without overwriting?

Two- and three-way folder compare and merge issues.

How to merge directories / files from first to second without overwriting?

Postby jimbob_sf » Wed Sep 02, 2009 2:02 pm

I have 2 large directories of MP3 files. My music folder got all screwed up by a so-called de-duping program. So, I need to put the 2 directory trees back together.

I use folder compare mode to show the first directory tree and the second directory tree. The second tree has most of the files, but some are on the first. I can't use the "merge first to second" option because it deletes the files and directories on the second. How do I do true "merge" where the second tree becomes the union of the two? I can't find an option that won't delete stuff on the second tree.
jimbob_sf
Newbie
 
Posts: 3
Joined: Wed Sep 02, 2009 1:57 pm

Re: How to merge directories / files from first to second without overwriting?

Postby Mofi » Thu Sep 03, 2009 12:05 am

Use Merge - Accept All - Accept from First to Second.

Or you simply copy with Windows Explorer all files and directories of folder 1 to folder 2.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4049
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: How to merge directories / files from first to second without overwriting?

Postby jimbob_sf » Thu Sep 03, 2009 11:32 am

There are cases where the same file is in both places. I want the one with the higher bitrate / size to stay. Windows isn't smart enough for that, and I just paid for this program to help merge directories...

Any help for using UC?
jimbob_sf
Newbie
 
Posts: 3
Joined: Wed Sep 02, 2009 1:57 pm

Re: How to merge directories / files from first to second without overwriting?

Postby Mofi » Thu Sep 03, 2009 11:52 am

Okay, you want just the unique files in left pane (folder 1) copied to right pane (folder 2). Enable setting Options - Folder Mode Filters - Hide Different Files and run the recursive folder comparison. Click on View - Just Differences and you will see only the unique files in both directory trees. Now use Merge - Accept All - Accept from First to Second and UltraCompare will copy only the unique files on left pane to the folders in the right pane ignoring the unique files in folder 2 and all files existing in both directories (identical and different).
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4049
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: How to merge directories / files from first to second without overwriting?

Postby jimbob_sf » Thu Sep 03, 2009 11:56 am

Many thanks. I'll give it a shot. It would be great if some logic were built in to handle audio / video files such as size, bitrate, type... Some other folks are building such utilities for media files, but they are small little vb type apps and can't handle the scale and the design/build quality isn't close to what IDM builds.
jimbob_sf
Newbie
 
Posts: 3
Joined: Wed Sep 02, 2009 1:57 pm

Re: How to merge directories / files from first to second without overwriting?

Postby jharris » Fri Feb 18, 2011 2:05 pm

How can I use the Merge All option and not wipe out differences in first file what are not present in the second. I just want to merge the differences from the second file.
jharris
Newbie
 
Posts: 1
Joined: Fri Feb 18, 2011 1:57 pm

Re: How to merge directories / files from first to second without overwriting?

Postby Mofi » Sat Feb 19, 2011 5:02 am

Everything not equal is different. There are no type of differences like line exist only in file A or file B or line exists in both files, but contains differences. Therefore there is no command to copy all lines existing only in file B into file A. You have to go through all differences for example with key F3 for Next Difference and copy the unique lines in file B with key Alt+Left Arrow for Merge Second to First into file A.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4049
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna


Return to Folder Compare and Merge