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.
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.
https://developer.microsoft.com/en-us/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
Differencies will be colored as red. Same lines will be printed in green.