Page 1 of 1
Launch "compare by content" from another program
Posted: 2008-05-21, 06:04 UTC
by njd
Hi,
I would like to launch "compare by content" from another program (perforce). Is there any command that i can invoke from outside TC ?
Thanks,
NJ[/code]
Posted: 2008-05-22, 16:55 UTC
by versalzen
it would be more freedom if it were like this:
a single button for: start an external program for the left file.
a single button for: start an external program for the right file.
a single button for: start an external program for the left+right file.
additionally,
the definition of external programs could be very complex.
ie.
by extension
by name (with patterns)
by a list (manually defined by the user)
etc...
i support this :-)
Posted: 2008-05-22, 18:09 UTC
by Hacker
versalzen,
I think you are talking about something completely different.
Roman
Posted: 2008-05-22, 19:01 UTC
by petermad
I think you are talking about something completely different.
I think so too.
Posted: 2008-05-22, 21:04 UTC
by versalzen
Hacker wrote:versalzen,I think you are talking about something completely different. ;)
now, that it read my and the first post again, i have to admit that you're correct ;-)
but anyhow, a good idea (my one)
Posted: 2008-05-24, 07:55 UTC
by StatusQuo
njd wrote:I would like to launch "compare by content" from another program (perforce). Is there any command that i can invoke from outside TC ?
Using
TCStartWithCommand (*)
it could be as simple as this (e.g. in a batch file, using %1 and %2 for the paths)
to place the cursor left + right on the two specified files and then call the internal "Compare by content" tool.
Code: Select all
TCStartWithCommand.exe /O /T /P=L /L="d:\path\file1.ext" /R="d:\path\file2.ext" /X=cm_IntCompareFilesByContent
Unfortunately this way TC
ignores the selected file in the inactive panel
and always compares the file selected on the left (active) panel against
itself.
The same is the case when using just
Code: Select all
TCStartWithCommand.exe /O /X=cm_IntCompareFilesByContent
...without changing the cursor positions.
If the two files are marked (using space) before calling
cm_IntCompareFilesByContent it works without a problem.
I guess a workaround (marking the files before calling compare) could be done using another script, having up to 3 external files in use for this function (+TC +Compare)...
Does somebody have an idea, why this is or even have a solution / workaround?
(*) TCStartWithCommand:
(german thread with current download link - for some english threads please search the forum for "TCStartWithCommand")
For installation just copy TCStartWithCommand.exe into TC's program directory.