I think this is a bug. I am trying to run a folder comparison from a script. For argument's sake I'll use an Explorer shortcut to replicate the problem.
Create a shortcut to bcompare.exe and put it somewhere on the C: partition.
Copy the same shortcut to a folder on another partition, e.g. D:.
Shortcut 1: C:\DIR\bcompare.lnk
Shortcut 2: D:\DIR\bcompare.lnk
Shortcut points to: c:\portable\bcompare.exe c: d:
(surround with quotes if required)
NOTE: This only happens if the trailing backslash '/' is omitted, i.e. you need to type c: not c:\, and so on.
Expected result: When either shortcut is double-clicked, BeyondCompare should compare the C: and D: partitions.
BUG: What actually happens is that when Shortcut 1 (from C: partition) is run, BC compares C:\DIR <-> D: instead of C: <-> D: . Likewise, when Shortcut 2 (D: partition) is run, BC compares D: <-> D:\DIR instead of C: <-> D:. When the path input box is clicked it changes back to c: or d:, but when it loses focus BC restores the incorrect path.

This only happens when the comparison involves a root dir without a trailing backslash AND BC is started from a path whose root is the same as the root being compared.
The workaround is to include a trailing backslash after the drive root.

Create a shortcut to bcompare.exe and put it somewhere on the C: partition.
Copy the same shortcut to a folder on another partition, e.g. D:.
Shortcut 1: C:\DIR\bcompare.lnk
Shortcut 2: D:\DIR\bcompare.lnk
Shortcut points to: c:\portable\bcompare.exe c: d:
(surround with quotes if required)
NOTE: This only happens if the trailing backslash '/' is omitted, i.e. you need to type c: not c:\, and so on.
Expected result: When either shortcut is double-clicked, BeyondCompare should compare the C: and D: partitions.
BUG: What actually happens is that when Shortcut 1 (from C: partition) is run, BC compares C:\DIR <-> D: instead of C: <-> D: . Likewise, when Shortcut 2 (D: partition) is run, BC compares D: <-> D:\DIR instead of C: <-> D:. When the path input box is clicked it changes back to c: or d:, but when it loses focus BC restores the incorrect path.

This only happens when the comparison involves a root dir without a trailing backslash AND BC is started from a path whose root is the same as the root being compared.
The workaround is to include a trailing backslash after the drive root.


Comment