侧边栏壁纸
博主头像
落叶人生博主等级

走进秋风,寻找秋天的落叶

  • 累计撰写 130562 篇文章
  • 累计创建 28 个标签
  • 累计收到 9 条评论
标签搜索

目 录CONTENT

文章目录

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

2023-11-10 星期五 / 0 评论 / 0 点赞 / 35 阅读 / 1860 字

Hello everyone, I have 2 folders with inputfile and outputfile (same filename). I would li

  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

    .
.

广告 广告

评论区