html批量选择文件类型,Beyond Compare脚本:命令行批量比较文件并生成html格式的差异报告...

本文介绍了如何使用Beyond Compare的命令行参数批量比较文件,并生成HTML格式的差异报告。通过创建批处理文件和指定参数,可以自动化进行文件比较和报告生成,适用于Windows环境。
摘要由CSDN通过智能技术生成

BComp.exe /silent /closescript /solo

@E:\compareTest\BCbatch.txt

text-report layout:side-by-side

options:display-all,line-numbers title:"report"

output-to:"E:\compareTest\report.htm" output-options:wrap-word,html-color

"E:\Edit1" "E:\Edit2"

http://html5.codemach.com/beyondcompare-jiao-ben-bi-jiao-wen-jian-bing-sheng-cheng-html-ge-shi-de-cha-yi-bao-gao.html

说明:以下内容在Windows环境下验证OK

1、将Beyond Compare的安装路径添加到环境变量,以便在命令行中运行BCompare.exe命令

2、新建一个文本文件diff_to_html.txt,输入并保存以下内容:

text-report layout:side-by-side &

options:ignore-unimportant,display-context &

output-to:%3

output-options:html-color %1 %2

3、在命令行中,运行以下命令:

> BCompare.exe /silent @diff_to_html.txt my_file.txt your_file.txt

my_report.html

注意:这里假设*.txt、*.html都在当前工作目录中;其他情况下,请在文件名前加上相应的路径前缀Beyond

Compare脚本:比较文件并生成html格式的差异报告

--------------------------------------------------------------------------------------------------------------------------------------------------

新建一个文本文件,假设命名为BCbatch.txt,只有一行内容如下:

file-report layout:side-by-side options:display-all,line-numbers

output-to:"report.htm" output-options:wrap-word,html-color "比较文件1的全路径"

"比较文件2的全路径"

然后在命令行下执行:

BC.exe @BCbatch.txt

http://www.scootersoftware.com/help/index.html?command_line_reference.html

Command Line

Reference

7a11e28ccacdae99eccda091b2a918a1.pngf967a71432413a96c187a839d4e5b289.png69711f42dc6abe7b7e90dbcce75ec367.png

Command Line

Parameters

Notice that each parameter should be enclosed in quotation marks if it

might contain a space.</

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值