UltraCompare's command line options allow you to integrate it with other applications and systems. If you're using version control in a team development environment, then you can use UltraCompare as your version control system's compare tool to quickly diff files, resolve conflicts, merge, and more.
While most version control systems provide integration with an external diff tool, each version control system has a unique way of building the command line. Some are simple (e.g., simply sending the two file names) while others are more difficult.
As a base, we have tested UltraCompare with the following version control systems:
The command line support is the key component to the version control support. While the command line support is very flexible, there are some rules you must observe when building your command line strings:
-wmust always precede the related compare object (ie: the paths for the files/folders being compared).
-t <filename1> <filename2> -b -lt -o <outputfile>
-t -o -b <filename1> -lt <filename2> <outputfile>
-title1 <titlename1> -title2 <titlename2> -t <filename1> <filename2>
-title1 <titlename1> -t <filename1> <filename2> -title2 <titlename2>
-t <filename1> <filename2> -title2 <titlename2> -title1 <titlename1>
-t <filename1> -title2 <titlename2> <filename2> -title1 <titlename1>
The following command line parameters may be used to invoke UltraCompare Professional from the command line. For a full list of the command line parameters, see the UltraCompare Help.
|-3||3-way text mode|
|-a||sets Show All|
|-B||ignore blank lines in text compare mode|
|-b||ignore spaces in text compare mode|
|-d||folder compare mode|
|-dmb||sets Folder Compare type to Basic|
|-dmf||sets Folder Compare type to Full|
|-dms||sets Folder Compare type to Smart|
|-fb||force all files to be compared as binary in folder compare mode|
|-ft||force all files to be compared as text in folder compare mode|
|-horz||sets view to horizontal layout|
|-i||ignore case in text compare mode|
|-lt||enables ignore line terminators|
|-m||shows matching lines / items only|
|-mc||shows matching columns only (table / Excel mode)|
|-mr||shows matching rows only (table / Excel mode)|
|-ne||shows different lines / items only|
|-nec||shows different columns only (table / Excel mode)|
|-ner||shows different rows only (table / Excel mode)|
|-o||creates output file|
|-op||appends output to specified file|
|-p||fast binary compare mode|
|-prf||runs specified profile|
|-qc||quick difference check – performs a byte by byte check until the first difference is detected and then returns "Same" or "Different" on command line|
|-r||compare folders recursively in folder compare mode|
|-rio||reset ignore options|
|-rom||read only merge mode|
|-t||text compare mode|
|-tb||table / Excel compare mode|
|-title1||sets alias/title name for file/folder in first pane|
|-title2||sets alias/title name for file/folder in second pane|
|-title3||sets alias/title name for file/folder in third pane|
|-vert||sets view to vertical layout|
|-w||3-way folder compare mode|
|-x||smart binary compare mode|
"C:\Program Files\IDM Computer Solutions\UltraCompare\uc.exe" "%base" "%mine%"
"C:\Program Files\IDM Computer Solutions\UltraCompare\uc.exe" "%6" "%7" -title1 %3 -title2 %5
#diff-cmd=diff_program(diff, gdiff, etc.)
diff-cmd=diff_program(diff, gdiff, etc.)
diff-cmd=C:\Program File\IDM Computer Solutions\UltraCompare\ucsvndiff.bat
Note: One of our users provided the following solution to integrate UltraCompare with Cygwin Subversion.
Create a file named ucsvndiff.sh or something similar and put the following into it:
# Edit $HOME/.subversion/config
### Set diff-cmd to the absolute path of your 'diff' program.
### This will override the compile-time default, which is to use
### Subversion's internal diff implementation.
#diff-cmd = /home/rob_000/bin/ucsvndiff.sh
# Uses the format -u -L <revision> -L "(working copy)" <revision file> <working copy file>
# The files are in linux format, so cygpath -w is required
/cygdrive/c/Program\ Files/IDM\ Computer\ Solutions/UltraCompare/uc `cygpath.exe -w $6` `cygpath.exe -w $7` -title1 "$3" -title2 "$5"
Please note: A space must be inserted between the specified values.
%base %mine -title1 %bname -title2 %yname
C:\Program Files\IDM Computer Solutions\UltraCompare\uc.exe %base %mine -title1 %bname -title2 %yname
Visual SourceSafe 2005 (installed from Visual Studio DVD)
C:\Program Files\IDM Computer Solutions\UltraCompare\uc.exe %1 %2