winmerge icon indicating copy to clipboard operation
winmerge copied to clipboard

Bug - doesn't compare subfolders automatically, when folders are dragged onto

Open ttodua opened this issue 3 years ago • 2 comments

This bug has been more than year and I've never reported till date, in hope you might see it easily and fix soon. But seems still underlooked. So, when Edit > Options > Folder > Include Subfolders is checked, you open winmerge, and you drag two folders, then the subfolders are also successfully compared, however, if you drag two folders directly onto WinMerge app icon, then WInMerge starts and does compare those two folders as regular compare (without subfolders). you then have to do a blanket action - open options and click OK, and then refresh button - after that subfolders are also compared.

ttodua avatar Aug 16 '22 11:08 ttodua

Dragging and dropping two folders to the WinMerge application icon is equivalent to invoking the WinMerge executable with two folder paths as command line arguments.

When invoking WinMerge with two folder paths, the 'Include Subfolders' option is ignored and the command line option takes precedence.

If you add the command line option -r or /r, WinMerge will compare up to subfolders, but if you start without it, it will not compare up to subfolders.

This is the reason for its behavior.

As a workaround, start WinMerge and drag & drop the folder into the WinMerge window, or add the -r option in the properties of the shortcut to WinMerge and drag & drop it into the shortcut icon, as shown below.

image

sdottaka avatar Aug 16 '22 16:08 sdottaka

thanks for quick reply. just what I thought of being a bug is that, independent whether app is open or not, dragging two folders onto it, should cause WinMerge to check the value of that option, and according to it, open them. tnx anyway

ttodua avatar Aug 17 '22 06:08 ttodua