Beyond Compare比较俩个文件夹下的对比,生成报告

  1. Hello everyone,

    I have 2 folders with inputfile and outputfile (same filename).
    I would like to compare every same filename and write the differences in a file report.

    Is there a way to do this in a batch?

    So:
    c:\input\file1.xml
    c:\input\file2.xml

    c:\output\file1.xml
    c:\output\file2.xml

    c:\results\report-file1.html
    c:\results\report-file2.html

    I allready have

    batch
    "C:\Program Files\Beyond Compare 2\BC2.exe" @C:\tools\Compare.script "C:\input" "C:\output" /silent

    Compare.script
    load "C:\input" "C:\output"
    filter "*.xml"
    expand all
    select all
    file-report layout:side-by-side options:display-mismatches output-to:"C:\results\compare_report.html" output-options:wrap-word,html-color

    but it's everything in one report!
  1. Hello,

    Yes, when selecting multiple files, it will generate a single report. You would need to perform multiple file reports on multiple pairs of files to generate a new report each time (given a new "output-to:c:\report3.html" each time, which can be done by using a 3rd parameter: output-to:%3).

    bc2.exe " @c:\bcscript.txt" "c:\file1.txt" "c:\file2.txt" "c:\bcreport1.html"

    where bcscript.txt is:
    file-report layout:side-by-side options:display-mismatches output-to:"%3" output-options:wrap-word,html-color "%1" "%2"

    We do not have an automated method to create or pass the list of files to separate reports; this would need to be done with a separate script.

    Aaron P Scooter Software

转载于:https://my.oschina.net/u/3157270/blog/902189

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值