Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to only merge/move/copy the larger file when merging two directories of the same name in Windows 7?

confirmation dialog

My specific scenario is merging two music libraries from old machines onto a new one. THe old libraries may have been ripped at a lower bitrate, and so I always want the larger of the two files to be kept when given a choice.

Right now, I'm stuck pressing "No" on every one

share|improve this question
Are the lower bit rate files always older? If the two machines you're moving them from are 'old' machines. If so you could write a script that does not overwrite newer files (by datestamp) with older ones for example using Xcopy with the /D switch set – Joe Taylor Sep 17 '11 at 15:13
@Joe Taylor - not alwaysold: but they are always smaller! – warren Sep 17 '11 at 16:12
You are gonna have to batch file this one buddy. – surfasb Sep 17 '11 at 16:54
@surfasb - could you suggest a batch file way of doing it? – warren Sep 22 '11 at 13:42

If not a batchfile, tryin xxcopy.

2.3.3 by File Size

You may use the relative file size as the file selection criteria. The switches listed below are mutually exclusive.

/BZ Same as /BZX /BZE Backs up equal-size files (includes brand new files). /BZL Backs up larger-size files (includes brand new files). /BZS Backs up smaller-size files (includes brand new files). /BZX Backs up different-size files (includes brand new files).

share|improve this answer
what would the batch/powershell route look like? – warren Nov 11 '11 at 2:35

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.