
windiff
windiff
is a tool used to compare given files contents and print the same and different lines. windiff
is provided by Windows SDK Core
. So in order to use this tool we need to install Windows SDK Core
for different versions.
windiff
是用于比较给定文件内容并打印相同和不同行的工具。 windiff
由Windows SDK Core
。 因此,为了使用此工具,我们需要为不同版本安装Windows SDK Core
。
下载并安装windiff (Download and Install windiff)
windiff
can be downloaded from the following links. Windows SDK is a very large file which can take huge bandwidth and some time. We have also an alternative and faster way. We can download windiff.exe
from Grigsoft
from the following link.
可以从以下链接下载windiff
。 Windows SDK是一个非常大的文件,可能会占用大量带宽并需要一些时间。 我们还有另一种更快的方法。 我们可以从以下链接从Grigsoft
下载windiff.exe
。
https://developer.microsoft.com/en-us/windows/downloads/sdk-archive
https://developer.microsoft.com/zh-CN/windows/downloads/sdk-archive
句法 (Syntax)
We will use following syntax which is very simple. We will provide two file names if they are in the current working directory or paths.
我们将使用以下非常简单的语法。 如果它们在当前工作目录或路径中,我们将提供两个文件名。
windiff FILE1 FILE2
比较两个文件 (Compare Two Files)
We will provide two file named to the windiff
in the following example. These files are named as ABC.txt
and XYZ.txt
.
在以下示例中,我们将提供两个名为windiff
文件。 这些文件名为ABC.txt
和XYZ.txt
。
> windiff ABC.txt XYZ.txt
Differencies will be colored as red. Same lines will be printed in green.
差异将显示为红色。 相同的行将以绿色打印。
翻译自: https://www.poftut.com/how-to-use-windiff-to-compare-contents-of-two-files-in-windows-with-examples/
windiff