In order to set Code Compare as the default diff tool for Perforce, perform the following steps:
Arguments: %1 %2
In order to set Code Compare as the default merge tool for Perforce, do the following:
“c:\Program Files\Devart\Code Compare\CodeMerge.exe” /BF=%1 /TF=%2 /MF=%3 /RF=%4 /SC=P4
Save and close the document
Location: “[path to the .bat file]”
Arguments: %b %1 %2 %r
In order to use Code Compare with the Perforce command line:
p4 set P4DIFF=”[InstallationDir]\CodeCompare.exe”
p4 set P4MERGE=”[path to the previously created .bat file]”
Note
Use your product installation folder instead of [InstallationDir]. By default, it is C:\Program Files\Devart\Code Compare.