【问题标题】:Beyond Compare text-report on all the files from given folders超越比较给定文件夹中所有文件的文本报告
【发布时间】:2020-01-17 15:53:22
【问题描述】:

我的目标是对文件夹 A 和 B 中的所有文件运行 text-report,并作为输出 html 文件获取相应文件之间的所有差异。最好的是,如果它只是一个输出文件。有没有办法在不迭代调用 text-report 的情况下做到这一点?

我当前的脚本如下所示:

log normal log.txt
text-report layout:side-by-side options:ignore-unimportant,display-mismatches
& output-to:"%3" output-options:html-color "%1" "%2"

我可以使用带有文件比较输出链接的文件夹报告,但这不支持我所追求的文本报告选项,即忽略不重要、显示不匹配。至少据我所知,但我是这个工具的新手。

我会很高兴任何答案。如果真的不可能,我会尝试不同的方式。

【问题讨论】:

    标签: scripting beyondcompare4


    【解决方案1】:

    Beyond Compare 的文本报告脚本命令对一对命名文件或选定文件进行操作。使用后一种方法(选定文件)为一对文件夹中的所有文件生成一个报告。

    log normal log.txt
    load c:\folder1 c:\folder2
    expand all
    select all.files
    text-report layout:side-by-side options:ignore-unimportant,display-mismatches
    & output-to:c:\out.html output-options:html-color
    

    要将报告限制为有差异的文件,请修改 select 命令并添加条件命令。

    log normal log.txt
    criteria rules-based ignore-unimportant
    load c:\folder1 c:\folder2
    expand all
    select diff.files orphan.files
    text-report layout:side-by-side options:ignore-unimportant,display-mismatches
    & output-to:c:\out.html output-options:html-color
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2022-01-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-11-05
      • 1970-01-01
      相关资源
      最近更新 更多