Below are some examples to choose from. Select the one that is closest to what you require and modify it.
If you are have any trouble using these examples, please see:
Using the Command Line Interface
Helpful Hints for Creating a Command Line
Remember: If you don't specify a particular option in the command line, the option will default to whatever was last set in the user interface. Therefore, you can set up the application to generate a detailed file difference report for each set of changed files. To specify switches for the comparison of textual content (e.g. - Ignore white space /W or Ignore Case /I), you must first set up the user interface by going into Folder Compare Options and enabling Check Textual Content if Binary Content Is Shown to Differ.
Compare the contents of two folders |
|
Compare the contents of two folders contents including their sub folders |
DiffDoc /D /S"E:\delme\Compare1" /M"E:\delme\Compare2" /U*.DOC /T"C:\output\Report.CSV" /V /X
This example illustrates how to use the command line to compare all *.DOC files within two folders E:\delme\Compare1\ and E:\delme\Compare2\. A CSV style report will be created and the program will exit upon completion. A status message will be displayed telling the user how the command line went.
/D Commands 'Diff Doc ' to compare folders.
/U Commands 'Diff Doc' which extensions to compare. Leave blank to compare all.
/T Commands 'Diff Doc' where to save the tab delimited report file.
/X Commands 'Diff Doc' to exit upon completion.
/V Commands 'Diff Doc' to report any errors in a verbose fashion.
DiffDoc /D /S"E:\del\Compare1" /M"E:\del\Compare2" /U"*.HTM *.HTML" /T"C:\output\Report.CSV" /V /C /X
This example is identical to Example 1 above, except that sub folders are specified and instead of *.DOC, all *.HTM and *.HTML files will be compared.
/D Commands 'Diff Doc' to compare folders.
/C Commands 'Diff Doc' to compare all sub folders.
/U Commands 'Diff Doc' which extensions to compare. Leave blank to compare all.
/T Commands 'Diff Doc' where to save the tab delimited report file.
/X Commands 'Diff Doc' to exit upon completion.
/V Commands 'Diff Doc' to report any errors in a verbose fashion.
See Also:
Using the Command Line Interface
Helpful Hints for Creating a Command Line
Command Line Examples - General File Comparison
Command Line Examples - Excel Files Comparison