Compare Excel workbooks from command line.

You can use xlCompare from the Command Line. This allows to run comparison for Excel files from the external application.
To compare 2 files from the command line you should use the following syntax:
wct_ui.exe "path to first workbook" "path to the second workbook" { /w | /n | /vba }
  • /w - compare worksheets
  • /n - compare names
  • /vba - compare vba modules
Please note, usually you should specify full path to the wct_ui.exe utility. If xlCompare is installed into the default location, it looks like this:
C:\Program Files\Spreadsheet Tools\Workbook Comparison Tool\wct_ui.exe
Or as another workaround you need to add folder path C:\Program Files\Spreadsheet Tools\Workbook Comparison Tool to the environment PATH variable.