PDA

View Full Version : Multiple files in one HTML report (with context)?


estelle
27-Apr-2006, 06:22 PM
Hi,

I am new to Beyond Compare. I would like to produce a single HTML report with mode "Differences with Context" for a series of files. Ideally I want to specify two folders to be compared recursively, and only differing files will be included in the HTML report.

Can anyone give me pointers? Is there a script or something that does this?

Thanks,
Estelle

estelle
27-Apr-2006, 06:38 PM
I've made some progress but the output report is always empty and I get this error message: "Exception occurred at: 000119EE. System Error. Code: 87. The parameter is incorrect".

This is the script I am trying to use:
log normal c:\scripts\bc.log
load c:\scripts\diff1 c:\scripts\diff2
expand all
select all.files
file-report layout:side-by-side options:display-context output-to:c:\scripts\report.html output-options:html-color
Debug log:
27/04/2006 5:32:50 PM >> log normal c:\scripts\bc.log
27/04/2006 5:32:50 PM >> load c:\scripts\diff1 c:\scripts\diff2
27/04/2006 5:32:50 PM Load Comparison: c:\scripts\diff1 <-> c:\scripts\diff2
27/04/2006 5:32:50 PM >> expand all
27/04/2006 5:32:50 PM >> select all.files
27/04/2006 5:32:50 PM >> file-report layout:side-by-side options:display-context output-to:c:\scripts\report.html output-options:html-color
27/04/2006 5:32:50 PM Beyond Compare Version 2.4.1 (build 241)
27/04/2006 5:32:50 PM Exception occurred at: 000119EE
27/04/2006 5:32:50 PM System Error. Code: 87.
27/04/2006 5:32:50 PM The parameter is incorrect
27/04/2006 5:32:50 PM Script completed in 0.11 seconds

estelle
28-Apr-2006, 07:01 AM
Its all working now.... woohoo! I think i just needed to restart my computer :p

Chris
28-Apr-2006, 12:18 PM
The script will still include the filenames of matching files, but it won't list their contents. If you don't want the filenames of matching files listed in the report, use the following modified version of your script:

log normal c:\scripts\bc.log
criteria rules-based
load c:\scripts\diff1 c:\scripts\diff2
expand all
select all.diff.files
file-report layout:side-by-side options:display-context output-to:c:\scripts\report.html output-options:html-color