运行 来自 Java 的 Beyond Compare4 脚本?

Run Beyond Compare4 Script from Java?

Beyond compare 提供了一个脚本来获取 html 格式的报告。 我想通过 java 运行 脚本来获取特定文件夹中的报告 但我每次都会出错。

MyScript

 text-report layout:Interleived &
 options:ignore-unimportant,display-context &
 output-to:%3 output-options:html-color %1 %2

我对脚本的 java 调用

    String left = "D:\DatabaseModifier\VIS VS EBZVIS\VIS_Lookup_left.xls";
    String right = "D:\DatabaseModifier\VIS VS EBZVIS\EBZVIS_Lookup_right.xls";

try{
    Process process = new ProcessBuilder("C:\Program Files\Beyond Compare4\BCompare", "@D:\DatabaseModifier\MyScript.txt",left,right,"D:\DatabaseModifier\check.html").start();

   }catch(Exception e){

   }

之前没有 check.html 我创建文件时仍然遇到同样的错误

经过数小时的搜索和追踪,这就是脚本

data-report layout:Interleaved options:ignore-unimportant output-to:"%3" output-options:html-color "%1" "%2"

和 java 调用

String left = "D:\DatabaseModifier\VIS VS EBZVIS\VIS_Lookup_left.xls";
String right = "D:\DatabaseModifier\VIS VS EBZVIS\EBZVIS_Lookup_right.xls";


   try{
    Process process = new ProcessBuilder("C:\Program Files\Beyond Compare 4\BCompare", "@D:\DatabaseModifier\MyScript.txt",left,right,"D:\DatabaseModifier\check.html").start();

   }catch(Exception e){

   }