PDA

View Full Version : Use /ignoreunimportant command line switch


yoanq
19-Aug-2010, 08:11 AM
Hi, when I tried to compare two folder using script in command line, i need ignore unimportant differences, but not work. BCompare copy file to folder D:\Diff no included in difference if I use ignore unimportant differences button in GUI interface.

Any suggestion,

Thank's Yoan


Command Line
BCompare.exe /closescript /ignoreunimportant "Compare_1.txt"


File Compare_1.txt
load "D:\DDL" "D:\Comp\DDL"
criteria rules-based
expand all
select left.orphan
copyto path:base "D:\NewTFS"
select right.orphan
copyto path:base "D:\NewBD"
select right.diff
copyto path:base "D:\Diff"

Aaron
19-Aug-2010, 03:07 PM
Hello,

The /ignoreunimportant command line does not work in this case. It is not a toggle command, but used only for automated merges.

If you open BC3, open a blank Folder Compare, enable Ignore Unimportant Differences, and then close the folder compare, it should carry over to the next script call.
Alternatively, you can create a new session that has Ignore Unimportant and rules-based comparisons enabled (in the Session Settings -> Comparison tab). Then load that session previous to loading the folders to have those settings in place:


load SavedSessionName
load "D:\DDL" "D:\Comp\DDL"
expand all
select left.orphan
copyto path:base "D:\NewTFS"
select right.orphan
copyto path:base "D:\NewBD"
select right.diff
copyto path:base "D:\Diff"