PDA

View Full Version : Am I just not understanding something?


swampdonkey
31-Aug-2006, 11:13 AM
I'm trying to write a script that looks at the content of two files. Compares the data in the files to one another and creates a report which display only the data which does not match. Here is my script:

LOAD "C:\Program Files\Beyond Compare 2\BCWork\Left Folder" "C:\Program Files\Beyond Compare 2\BCWork\Right Folder"
SELECT ALL.FILES
FILE-REPORT LAYOUT:SIDE-BY-SIDE OPTIONS:DISPLAY-MISMATCHES OUTPUT-TO:"C:\Program Files\Beyond Compare 2\BCWork\Report.html" OUTPUT-OPTIONS:HTML-COLOR

My report shows the FULL content of both data files, not only the mis-matched data. I get everything. Am I missing something?

Thanks in advance ;)

Ernie
31-Aug-2006, 05:29 PM
Try adding "IGNORE-UNIMPORTANT" to your "OPTIONS:" clause - separate the options with a ',' and see if that makes a difference.

swampdonkey
08-Sep-2006, 08:24 AM
Ok ... here is my new script with the OPTIONS:DISPLAY-MISMATCHES,IGNORE-UNIMPORTANT added.

LOAD "C:\Program Files\Beyond Compare 2\BCWork\Left Folder" "C:\Program Files\Beyond Compare 2\BCWork\Right Folder"
SELECT ALL.FILES
FILE-REPORT LAYOUT:SIDE-BY-SIDE OPTIONS:DISPLAY-MISMATCHES,IGNORE-UNIMPORTANT OUTPUT-TO:"C:\Program Files\Beyond Compare 2\BCWork\Report.html" OUTPUT-OPTIONS:HTML-COLOR

I still get an output of both the full data in the files. I only want the lines of data that does not match. I don't want the matching data to be listed in the report. Any other suggestions?

Chris
08-Sep-2006, 01:42 PM
This might have something to do with your file comparison rules.

If you open the files in the File Viewer, with View|Ignore Unimportant Differences turned on, and your display filter set to View|Just Differences, does it show all the lines in the file?

If it does, the difference might be in whitespace, or some other difference that isn't obvious in the report. You can see whitespace characters using View|Show Whitespace. To edit your rules, select Tools|Edit Current Rules.