0

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

我的脚本

 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 我创建的文件仍然得到同样的错误

错误截图

4

1 回答 1

0

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

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){

   }
于 2016-10-19T13:13:56.813 回答