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 Parameters
Notice that each parameter should be enclosed in quotation marks if it might contain a space.
Note Linux users should use "bcompare" instead of "BCompare.exe".
|
Parameter
|
Meaning
|
|
Named Session
|
Opens the specified session in the appropriate view. For example:
BCompare.exe "My Session"
|
|
Named Workspace
|
Opens the specified saved workspace. (see also Managing Workspaces) For example:
BCompare.exe "My Special Workspace"
|
|
Pair of folders
|
Opens a new Folder Compare view with the specified base folders. For example:
BCompare.exe "C:\Left Folder" "C:\Right Folder"
|
|
Pair of files
|
Opens the specified files in the associated file view. For example:
BCompare.exe "C:\Left File.ext" "C:\Right File.ext"
|
|
3 files 
|
Opens a Text Merge view with the specified files in the left, right, and center panes. For example:
BCompare.exe C:\Left.ext C:\Right.ext C:\Center.ext
|
|
4 files 
|
Opens a Text Merge view with the specified files in the left, right, center, and output panes. For example:
BCompare.exe C:\Left.ext C:\Right.ext C:\Center.ext C:\Output.ext
|
|
Script file
|
Automatically executes a list of commands without using a view. For example:
BCompare.exe "@C:\My Script.txt"
|
|
-
|
Opens stdin in the appropriate view. For example:
dir | BCompare.exe -
|
Command Line Switches
Note Linux users should prefix the switches with "-" instead of "/".
|
Switch
|
Meaning
|
|
/?
|
Displays the command line documentation.
|
|
/automerge 
|
Automatically merges files without user interaction unless conflicts are found.
|
|
/bds <filename>
|
Prompts to compare against previous revisions available in the CodeGear RAD Studio/Borland Developer Studio "__history" folders. Add to the IDE Tools menu with "/BDS $SAVE $EDNAME" as the parameters, or use the Beyond Compare IDE Expert from JED Software, available at www.jed-software.com.
|
|
/closescript
|
Closes the script window on completion. Overrides the Close when finished setting in Tools > Options > Scripts.
|
|
/edit
|
Opens a Text Edit view.
|
|
/expandall
|
Expands all subfolders during the initial folder comparison.
|
|
/favorleft
/favorright 
|
Draws non-conflicting changes in the output from the "favored" side without coloring or section lines. For ignored unimportant conflicts, changes are automatically taken from the "favored" side instead of the center.
|
|
/filters=<file masks>
|
Uses the specified name filter for the initial folder comparison. Separate multiple file masks with semi-colons. Surround the name filter with quotes if it contains spaces.
|
|
/force 
|
Writes conflicts to the output with CVS-style markers if/automerge is present.
|
|
/fv=<type>, /fileviewer=<type>
|
Opens a new view of the specified type which can be any of:
"Text Compare"
"Text Merge"
"Data Compare"
"Hex Compare"
"MP3 Compare"
"Picture Compare"
"Registry Compare"
"Version Compare"
|
|
/iu, /ignoreunimportant
|
Turns on Ignore Unimportant Differences if /automerge is present.
|
|
/mergeoutput=<filename> 
|
Explicitly specifies the merge output file.
|
|
/nobackups
|
Prevents the creation of backup files.
|
|
/qc=<type>, /quickcompare=<type>
|
Performs a quick comparison of two files and sets the DOS error level on exit. The specified type can be size, crc, or binary. If a type is not specified, a rules-based comparison will be performed. Error levels are documented below.
|
|
/reviewconflicts 
|
Opens a Text Merge view if /automerge is present and conflicts are found.
|
|
/ro, /readonly
|
Disables editing on all sides.
|
|
/ro1, /lro, /leftreadonly
/ro2, /rro, /rightreadonly
|
Disables editing on the respective side.
|
|
/savetarget=<filename>
|
Overwrites the specified file instead of original file when the file view's Save command is used.
|
|
/silent
|
Causes a script to be processed invisibly, bypassing the Task Bar entry and Scripting Status window. All interaction will be suppressed, so any unresolved issue that would normally show a dialog will log an error instead.
|
|
/solo
|
Forces a new instance of the program.
|
|
/sync
|
Opens a Folder Sync view.
|
|
/title1=<title>, /lefttitle=<title>
/title2=<title>, /righttitle=<title>
/title3=<title>, /centertitle=<title>
/title4=<title>, /outputtitle=<title>
|
Shows the specified description in the respective path edit.
|
|
/vcs1=<path>, /vcsleft=<path>
/vcs2=<path>, /vcsright=<path>
/vcs3=<path>, /vcscenter=<path>
/vcs4=<path>, /vcsoutput=<path>
|
Shows the specified version control system path in the respective path edit unless a title has been provided. For a file view, the specified path is also used to pick the appropriate file format.
|
DOS Error Levels set on exit
|
Level
|
Meaning
|
|
0
|
Success
|
|
1
|
Binary same
|
|
2
|
Rules-based same
|
|
11
|
Binary differences
|
|
12
|
Similar
|
|
13
|
Rules-based differences
|
|
14
|
Conflicts detected
|
|
100
|
Unknown error
|
|
101
|
Conflicts detected, merge output not written
|
|
102
|
BComp.exe unable to wait until BCompare.exe finishes
|
|
103
|
BComp.exe cannot find BCompare.exe
|
|
104
|
Trial period expired
|
|
105
|
Error loading script file
|
|
106
|
Script syntax error
|
|
107
|
Script failed to load folders or files
|
Command Line Executable Files 
|
Executable
|
Meaning
|
|
BCompare.exe
|
This is the main application. Only one copy will run at a time, regardless of how many windows you have open. If you launch a second copy it will tell the existing copy to start a comparison and exit immediately.
|
|
BComp.exe
|
This is a Win32 GUI program. If launched from a version control system, it should work just fine. If launched from a console window, the console (or batch file) will not wait for it.
|
|
BComp.com
|
This is a Win32 console program. It has to have a console. If you launch it from one (or a batch file) that console will wait for the comparison to complete before returning. If you launch it from a version control system interactively, it will show a console window while it's waiting.
|
|
- 用命令行的方式把jmeter结果文件JTL生成csv格式的聚合报告
我们知道 利用jmeter 的GUI的 Aggragate Listner 很容易把一个JTL 文件另存为CSV 文件,该CSV 文件中自动分析了 Transactions 的 90%, Median ...
- Linux命令行批量删除文件(目录)
快速-批量删除文件或目录 1-1.快速删除大文件夹(注意目录后的结束符'/')(对于含有海量文件的目录,不能直接rm -rf删除,这样效率很慢:) rsync -a --delete blank/ t ...
- Linux命令行批量替换多文件中的字符串【转】
Linux命令行批量替换多文件中的字符串[转自百度文库] 一种是Mahuinan法,一种是Sumly法,一种是30T法分别如下: 一.Mahuinan法: 用sed命令可以批量替换多个文件中的字符串. ...
- mac linux rename命令行批量修改文件名
我的mac使用命令行批量修改名字时发现居然没有rename的指令: zsh: command not found: rename 所以使用HomeBrew先安装一下: ➜ ~ brew install ...
- Shell 命令行 从日志文件中根据将符合内容的日志输出到另一个文件
Shell 命令行 从日志文件中根据将符合内容的日志输出到另一个文件 前面我写了一篇博文Shell 从日志文件中选择时间段内的日志输出到另一个文件,利用循环实现了我想要实现的内容. 但是用这个脚本的同 ...
- Shell 命令行批量处理图片文件名
Shell 命令行批量处理图片文件名 从网上下载了一堆图片,有的是*.jpg的,有的是*.jpeg的.并且文件名有长有短,很是糟心.因此,我想把这些文件给全部整理好,当然是用shell来处理啦! 说干 ...
- svn命令行批量删除和批量添加
svn命令行批量删除和批量添加 如果使用svn的命令行,例如在linux下的终端中使用,svn的添加命令是svn add,删除命令是svn del,但是缺乏批量的操作,如果我在资源管理器中,手动添加了 ...
- 在Linux主机使用命令行批量删除harbor镜像
在Linux主机使用命令行批量删除harbor镜像 脚本使用说明: 此脚本不是万能脚本,根据自身环境要调整很多 能用harbor的域名就不要用IP 脚本前半部分可以套用,后半部分需一步一步试错,结合 ...
- Jenkins 脚本命令行应用总结
Jenkins脚本命令行应用总结 测试环境 Jenkins 2.304 脚本命令行入口 Jenkins主页→系统管理→脚本命令行 遍历项目 例子:获取所有自由风格项目及相关项目信息 def proje ...
随机推荐
- 疯狂JAVA——第二章 理解面向对象
面向对象的三大特征:继承.封装和多态 面向对象的方式实际上由OOA(面向对象分析).OOD(面向对象设计)和OOP(面相对象编程)三个部分组成,其中OOA和OOD的结构需要用一个描述方式来描述并记录, ...
- Java含有Date的对象序列化网络传输
与短信接口对接时,Date从我这边传输以及在短信平台接收后转换出了问题 传入一个TemplateRequest对象 Feign接口 将含有Date的将要传输的TemplateRequest加上@Req ...
- HTML鼠标悬浮显示隐藏 JS方法
CSS样式表: @charset "utf-8"; /* CSS Document */ .a { width:80px; height:40px; top:200px; left ...
- Linux Shell中有三种引号的用法
Linux Shell中有三种引号,分别为双引号(" ").单引号(' ')以及反引号(` `). 其中双引号对字符串中出现的$.''.`和\进行替换:单引号不进行替换,将字符串中 ...
- mysql中树形结构表的操作
一种是:邻接表模型(局限性:对于层次结构中的每个级别,您需要一个自联接,并且随着连接的复杂性增加,每个级别的性能自然会降低.在纯SQL中使用邻接列表模型充其量是困难的.在能够看到类别的完整路径之前,我 ...
- Top K算法
应用场景: 搜索引擎会通过日志文件把用户每次检索使用的所有检索串都记录下来,每个查询串的长度为1-255字节. 假设目前有一千万个记录(这些查询串的重复度比较高,虽然总数是1千万,但如果 ...
- Codeforces 1136E Nastya Hasn't Written a Legend (线段树教做人系列)
题意:有一个数组a和一个数组k,数组a一直保持一个性质:a[i + 1] >= a[i] + k[i].有两种操作:1,给某个元素加上x,但是加上之后要保持数组a的性质.比如a[i]加上x之后, ...
- python的select服务端的代码和客户端的代码
服务端的代码 import socket import queue import select ip_bind = ("127.0.0.1",9000) message_queue ...
- 最高频的K个单词 · Top K Frequent Words
[抄题]: 给一个单词列表,求出这个列表中出现频次最高的K个单词. [思维问题]: 以为已经放进pq里就不能改了.其实可以改,利用每次取出的都是顶上的最小值就行了.(性质) 不知道怎么处理k个之外的数 ...
- ADF backing Bean中常用的代码
// 刷新iterator bindings.refreshControl(); iterBind.executeQuery(); iterBind.refresh(DCIteratorBinding ...