Command Line Usage

This topic shows examples of how you can use Compare It! in a command line.

Syntax

wincmp3.exe [ first_file second_file [result_file] /i=UserName] [options]

Where:

Additional Printing and Report Generation Options

Several additional options are available for both printing and report generation. These options can be specified as follows: /P:N2

The following printing/reporting options are available:

The number at the end of the command means "print changes only" with the specified number of context lines.

To select a report file, you must specify it after the /G option, as shown in the following example.

wincmp3.exe file1.dat file2.dat /G:SN3 c:\report.htm

This command will generate a comparison report to c:\report.htm, including statistics and line numbers, and only 3 context lines around the differences blocks.

Selecting printer to use


When printing with command line, you can also choose which printer to use. To specify printer name, place it just after /P command:

wincmp3.exe file1.dat file2.dat /P:CN3 "My Printer Name"

See also:
 Merged report
© 1996-2010, Grig Software, All Rights Reserved