Article ID: 159214 - Last Review: March 29, 2007 - Revision: 3.3 How to Use the Windiff.exe UtilityThis article was previously published under Q159214 SUMMARYThis article describes how to use the Windiff.exe utility, a
tool that graphically compares the contents of two ASCII files, or the contents
of two folders that contain ASCII files, to verify whether they are the same.
The file byte count and the creation date are not reliable
indications. Sometimes you may experience unusual program behavior and may suspect that a file is damaged, or you may suspect that two files have the same byte count but different dates. Therefore, you want to make sure that they are the same. If a file is suspect, the typical solution is to recopy from a known good file. This solution may solve the problem, but it prevents you from knowing whether the original file was damaged. It can be important to determine this, as file damage can indicate an underlying network or system problem. MORE INFORMATION In Microsoft Windows 2000 and later, Windiff.exe is
included on the original CD-ROM in the Support\Tools folder. To install the
support tools, run Setup.exe from the Support\Tools folder. Windiff.exe is also
in the Support.cab file. Support.cab is included with every service
pack. For additional information about how to install the Windows 2000 Support Tools, click the following article number to view the article in the Microsoft Knowledge Base: 301423
(http://support.microsoft.com/kb/301423/
)
HOW TO: Install the Windows 2000 Support Tools to a Windows 2000 Server-Based Computer
In Microsoft Windows NT, Windiff.exe is included in the Windows NT 4.0 Resource Kit. To download the Windows NT 4.0 Resource Kit Support Tools, visit the following Microsoft Web site: http://www.microsoft.com/downloads/details.aspx?familyid=3E972E9A-E08A-49A2-9D3A-C0519479E85A&displaylang=en
(http://www.microsoft.com/downloads/details.aspx?familyid=3E972E9A-E08A-49A2-9D3A-C0519479E85A&displaylang=en)
The Windiff.exe utility graphically illustrates the differences
between ASCII text files that you specify, or the difference between folders
that contain ASCII text files, and is especially useful for comparing program
source code. You can use Windiff.exe to compare whole subfolder trees. The
display shows either a summary of the comparison status of a list of files
(outline mode) or a detailed line-by-line comparison of the files (expanded
mode).To compare two files by using Windiff.exe, follow these steps:
There are other utilities that are available besides Windiff.exe that you can use to compare local ASCII and binary files, or to compare a local file to a questionable file at a remote site. To compare two files or groups of files at a local site, you can use the Fc.exe and the Comp.exe file compare commands. Both commands are run from a command prompt. You can use Fc.exe to compare two ASCII or binary files on a line-by-line basis. It offers several command-line options. For example, use the fc /b command to compare two binary files. For a complete list of options, type fc /? at a command prompt. You can use Comp.exe to compare ASCII and binary files and to compare groups of files in two different folders. For example, to compare all the .dll files in one folder to all the .dll files in the same folder on a different computer, type the following at a command prompt: comp C:\Winnt\System32\*.dll \\DifferentComputerName\C$\Winnt\System32\*.dll
To compare a local file to a remote file, you can use a utility
such as the third-party compression utility Pkzip.exe. To do so, use Pkzip.exe
to zip the file at both the local and the remote sites. Because zipping a large
file can take time, it is faster to use the pkzip -e0
(no compression) option. After you have zipped the files, use the
pkzip -v command to examine the cyclic redundancy check
(CRC32) value for the .zip files. If the CRC32 values are the same for the
remote and local sites, the files are the same.Note If you use Pkzip.exe to zip a file before you send the file to a remote site, because of the embedded CRC32, you will receive an error message during the unzip process if the file is damaged in transit. If you receive no error message, the file was conveyed without damage. For additional information about how to use Windiff.exe to compare registry files, click the following article number to view the article in the Microsoft Knowledge Base: 171780
(http://support.microsoft.com/kb/171780/
)
How to Use WinDiff to Compare Registry Files
The third-party products that this article discusses are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, regarding the performance or reliability of these products. APPLIES TO
| Article Translations
|

Back to the top
