PDA

View Full Version : problem comparing two files via script mode


eran
14-Jan-2009, 07:38 AM
Hey,

I’m working with the script mode of the BC, my main goal is to give the BC a list of files and to get back one report file with all the changes, when the importent part is to know if a specific line had changed, and what was the change(diffrent line, all the same or gone forever).

When I’m using the script, much like the scripts in the samples, I can’t get the information needed, this is the script:

select all
delete all



load "C:\test_folder" "C:\test_folder2"

#(each of the folders contain only 1 file)


expand all
select all
compare
file-report layout:side-by-side &
options:display-mismatches output-to:"C:\test_leda\new.txt"



so the problems are:
1. how can I get one file with all the specific result?

2. how can I see the changes in each line?

many thanks,:)
Eran.







Many thanks;

Eran

Aaron
14-Jan-2009, 03:47 PM
Hello Eran,

I sent a reply to your email containing the same question as this post. Let us know if you still have questions after reading it. In general:
You probably do not need the select all, delete all at the top of your script, or the compare line

Picking which report you would like is easier to do interactively with the dialog. Launch BC3, select files in the Folder Compare, and you can use the Actions menu -> File Compare Report to launch the dialog for picking the type of report. Once you've tried out the different options, you can then create a script that uses that combination.