PDA

View Full Version : file reports - replace file name on the report


21-Mar-2006, 08:17 AM
I'm trying to integrate BeyondCompare to our in house tool which regulary collects files and generates reports on changes.
Before I run BeyondCompare to compare two files, I create them in windows temp folder from compressed storage. When I generate report, these two ugly temporary files names are listed on it .. and they have no relation to what I need.

So I would appreciate if you could allow me to pass names that are used instead of files names on the report. Same way as I can change title, I'd like to be able to change displayed names of files.

so for example instead of
Left file: E:\!Diff\!files\Readme.another Right file: E:\!Diff\!files\Readme.txt

I'd like to have
Left file: "readme.txt from 1/6/2006" Right file: "readme.txt from 2/6/2006"

Chris
21-Mar-2006, 01:58 PM
You can already do this with BC using the command line switches: /title1= and /title2=.

bc2.exe /title1="readme.txt from 1/6/2006" /title2="readme.txt from 2/6/2006" E:\!Diff\!files\Readme.another E:\!Diff\!files\Readme.txt

The above command line will display the title arguments as the paths in the report.

23-Mar-2006, 06:40 AM
Ah thanks for the response.
I've forgotten to mention that I'm using BC in script mode ... my script looks like this:

file-report layout:side-by-side output-to:%1 output-options:html-color %2 %3

where I'm passing output file name as %1 and input files as %1 and %2. I can use "/title" switch here to change the title, but "/title1" and "/title2" seem to be available only in file view mode.

23-Mar-2006, 07:46 AM
anyways, the solution for me currently is to generate report with these temp names
then load it as text file and replace them by whatever else I want .. few lines in c++ and all is good for now

Chris
23-Mar-2006, 04:58 PM
The /title1 and /title2 options aren't available to scripts currently, but maybe in a future release.