GP SoftwareTwitter
Opus FAQsManualCommandsObjects

WinMerge/Synching: Select same destination file name

Hello again,

after a compare, I want to see the differences between the old and new file. I'm using WinMerge via a button (Source vs Destination). So I'm looking for a way to sync the selected old (source) file name with the new (destination) one.
Any hints?

Many thanks and greetings
opusfreak

{filepath} and {filepathdest} should give you the two file paths that you want.

There's a fuller example with some extra WinMerge switches (not sure what they do anymore) here:

Hello Leo,

I have installed these switches and WinMerge is working.
What I want to achieve is the following. After synching with DO I get checkboxes with blue arrows in the source pane. I select one of these files and the corresponding file (the file with the same name) should then be selected in the destination pane. Summarized something like a selected file name sync between dual panes.

Many thanks and greetings
opusfreak

I think you would have to use scripting for that, unless all the files are directly below the folders you are comparing and not in subfolders.

Hello Leo,

o. k., all the files are directly below the folders, no subfolders :smiley:.

Many thanks and greetings
opusfreak

Then what you want is: Diff/Merge Toolbar

Actually, these days, this is probably better (and the quotes thing from that 2006 thread doesn't seem an issue anymore):

"C:\program files\WinMerge\WinMergeU.exe" {leftpath}{file} {rightpath}{file}

(That is from this thread.)