Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to create a custom tool in TextPad to call the Tortoise SVN merge tool.

If I have two files open in TextPad, I want to diff them with TortoiseMerge by going to Tools -> TortoiseMerge in TextPad. I don't want to have to manually add any file paths, I want these to be picked up via TextPad.

I am having trouble with the parameters for the tool, here is what I have:

Command: C:\Program Files\TortoiseSVN\bin\TortoiseMerge.exe
Parameters: $File $File
Initial folder: $FileDir

This successfully diffs the same file - is there any means of getting the path to the other open file .. a similar $File variable or some other means..?

Many thanks.

share|improve this question
Consider using the TortoiseMerge command line arguments found here:… – Isxek Nov 2 '10 at 12:10
Yeah I'm already using them, the 'Parameters' field of the TextPad tool configuration acts as the command line args. I'm trying to figure out how to get the path of the other open file, in order to do the diff. $File gives me the path to the document I have open, I need something that lets me find the path to other open documents. – SuperBrook Nov 2 '10 at 13:28

I wanted this too, but it doesn't seem to be possible in one step.

Instead, I setup two simple tools:

  1. ctrl-1 copy $file C:\temp\temp1.txt
  2. ctrl-2 TortoiseMerge $file C:\temp\temp1.txt

So you select the first file and hit ctrl-1, then switch to the second file and hit ctrl-2.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.