16. Command Line

WinMerge accepts several parameters from command line, in addition to paths to compare. Most of these parameters are are intended for using WinMerge as an external compare application. Or for starting from batch files.

Syntax for the command line is:

WinMerge [/r] [/e] [/f filter] [/x] [/s] [/ul] [/ur] [/ub] [/wl] [/wr] [/minimize] [/dl leftdesc] [/dr rightdesc] leftpath rightpath [outputpath]

All parameters start with "/" or with "-" prefix character. Pathnames don't have any prefix character.

[Note] Note

leftpath and rightpath have to both be files or both be folders.

If both paths are not files or folders or one of paths is non-existent WinMerge shows the Open-dialog for user to choose proper paths to open.