How to integrate Araxis Merge comparison tool with WinSCP
Posted on August 19, 2009 by Mike Davis Technology No CommentsAs a software developer I use file comparison tools almost on daily basis. My favorite file comparison tool , in fact the only one I use, is Araxis Merge. You can compare files and directories with ease, have three way visual comparison, ignore different patterns of your choice (predefined like: code comments, cvs comments, … or custom expressed by regular expressions of your choice) and much more.
Sometimes I need to connect to a remote location using SFTP, FTP or SCP protocols. The best tool for this job is of course WinSCP and I think many of you are already using it. Once I am connected sometimes I need to compare a local file with the remote file. WinSCP offers a default comparison application, but if you are used with Araxis Merge you just can’t accept anything less.
For that reason, I will show you how to configure WinSCP to use Araxis Merge instead of its internal tool. Open menu Options->Preferences. At the left side you will find Commands sections. Within this section, on the right side, there is an entry that should look like that:
File Compare cmd /c fc “!” “!^!” | more &&…
How great is this ?
Usually, to change the diff tool used within the current application would require just a browse operation. As you can see, here is more complicated. I can explain what that line means, maybe some of you already knows, but for those of you who don’t know and want to change the default diff tool here is how you do it.
Double click on File Compare option and replace the Custom Command text with: “C:\Program Files\Araxis\Araxis Merge v6.5\Merge.exe” “!^!” “!”
Here is a short explanation of the above line:
- the first part is the path to Araxis Merge executable file
- the second part represents the command line parameters for Araxis : “!^!” is the local file given by WinSCP and “!” is the remote file. So this means Araxis will always open with local file in the left side and remote file on the right side. You can change the order depending on your style.
I hope this was useful for everybody as it is for me. Enjoy using Araxis with WinSCP.
