PDA

View Full Version : Comparing two files - Output file


tanya
13-May-2009, 08:50 AM
Hello,
I want to compare each file in 1 directory to each file in another directory and recieve 1 report of all the differences.

So, my script.txt is :

load "C:\files2" "C:\files3"
expand all
select all
file-report layout:side-by-side options:display-mismatches,line-numbers & output-to:"C:\otput.txt"

As a result the otput report looks like the list of content of two files (not just difference) and content of second file displayed under content of first file
There are two attached files :
output.txt - given from running script
report.txt - given from BC program/File difference report (this kind of report i would like to recieve after running script)

Anyone know What may be a problem ??

Thanks in advance

Aaron
13-May-2009, 10:00 AM
Files are aligned by File path and filename. They must be in matching relative paths (same subfolder), and have the same name in order to align and be compared.

This is easier to see if you use the graphical interface to perform each of these steps:
New Folder Compare
Load your two folders
click the expand all button
click the select all button
then generate a file-report from the Actions menu. You can also click individual files to see what that file pair's report would be.

BC3 allows for manual alignment, but that is not accessible in Script. BC3 Pro allows for alignment overrides, which can be set interactively and saved as a session. The session can then be loaded in script.