PDA

View Full Version : Script for generating reports with contents


medhali
28-May-2008, 10:43 PM
Hi,
I'm new to use BC2 through scripting .I want to compare files from two folders and generate reports of file comparison.But i must get the mismatched contents in the report.I have written this script

criteria rules-based
filter "*.txt"
load "c:\filesbeyondcompare1" "c:\files"
expand all
select all.diff
file-report layout:side-by-side options:display-mismatches output-to:testreport1.txt

The above script generates report but it doesnt show the mismatched contents.Anyone can provide solution for this.

Thanks.

Chris
29-May-2008, 03:01 PM
Medhali,

If this is the same scenario you emailed about, the issue was orphan files. If your two folders have files with different names, then "select all.diff" will not select orphan files. If you modify your select statement to "select all.diff.files all.orphan.files" it might help.

medhali
29-May-2008, 11:23 PM
Thanks a lot my problem is solved.Your help is really appreciable.