Go Back   Scooter Forums > Beyond Compare 2 Discussion > Script Central
Register FAQ Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 02-May-2006, 12:46 PM
aju aju is offline
Visitor
 
Join Date: May 2006
Posts: 4
Default comparing 2 files - scripting

hello
[my first post to the list.]

can someone provide and example of a command line script that just compare 2 files (ie that does not open the GUI). basically a tradional "diff" command with stdout piped to a file

i am currently able to do a folder-report but i can't make a file-report.

thanks
./allan
Reply With Quote
  #2  
Old 02-May-2006, 01:35 PM
chrroe chrroe is offline
Pooh-Bah
 
Join Date: Oct 2007
Location: Bremen, Germany
Posts: 562
Default Re: comparing 2 files - scripting

Hi allan!

Have you already read the helpfile of Beyond Compare (by pressing F1)?
In the chapter "Scripting Reference" the command file-report is explained.

What exactly is your problem with that command? Can you probably post an example of your script?


Bye
Christoph
Reply With Quote
  #3  
Old 02-May-2006, 02:01 PM
Chris Chris is offline
Team Scooter
 
Join Date: Oct 2007
Location: Madison, WI
Posts: 3,793
Default Re: comparing 2 files - scripting

There are two ways to make a file report.

Definition of file-report from the help file:

Code:
file-report layout:<layout> [options:<options>] \
            [title:<report title>] \
            output-to:(printer|clipboard|<filename>) \
            [output-options:<options>] [<filename1> <filename2>]
If you provide <filename1> and <filename2>, the report generates a diff for the two named files. If you don't provide <filename1> and <filename2>, the report generates a concatenated diff of all files selected using a select command.

Here's an example script for a diff of two named files:

file-report layout:side-by-side options:display-mismatches output-to:%3 output-options:html-color %1 %2

The script expands %1, %2, through %9 with command line arguments to the script.

To call the above script, use the command:
bc2.exe @script.txt file1.txt file2.txt report.html
__________________
Chris K Scooter Software
Reply With Quote
  #4  
Old 02-May-2006, 02:40 PM
aju aju is offline
Visitor
 
Join Date: May 2006
Posts: 4
Default Re: comparing 2 files - scripting

thanks very uch

briliant ...
i somehow was under the impression that i first needed to use the load directive to load the files

./a
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 06:24 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.