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我创建的文件仍然出现相同的错误
答案 0 :(得分: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){
}