1, if using the installation version of the Beyond Compare, the installation path to the environment change, so you can execute in cmd BCompare.exe
2, in the CMD path to add a file diff_to_html, enter the following content
Text-report layout: Side-by-side & options: Ignore-unimportant, Display-context & output-to:%3 output-options: HTML%1%2
3. Run the following command (if you use the green version of Beyond Compare, you can directly drag the BCompare.exe icon into the cmd window to execute the line)
Bcompare.exe/silent @diff_to_html file1.txt file2.txt report.html
/silent, do not let the message hint, if you want to see the results of the message hint can be removed from this parameters
File1.txt-Compare Files 1
File2.txt-Compare Files 2
Diff results generated by report.html
The output of the report.html will be stored in the CMD's executive catalogue. To specify a different path, take the last one to the absolute path.
PS: currently only used in the TXT format file comparison, the remainder of the file type is not sure whether it can be executed successfully.
Beyond Compare generate HTML format diff report