How to Use the Windiff.exe Utility - Windows Client (2024)

  • Article

This 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.

Original KB number: 159214

Summary

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.

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:
MS Windows NT 4.0 Resource Kit Support Tools

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:

  1. Start Windiff.exe.

  2. On the File menu, click Compare Files.

  3. In the Select First File dialog box, locate and then click a file name for the first file in the comparison, and then click Open.

  4. In the Select Second File dialog box, locate and then click a file name for the second file in the comparison, and then click Open.

    The information in the right pane indicates whether there is a file difference.

  5. To view the actual file differences, click the first line in the Windiff.exe output results, and then on the Expand menu, click Left File Only, Right File Only, or Both Files.

    The color-coded results indicate what the file differences are.

To compare two folders by using Windiff.exe, follow these steps:

  1. Start Windiff.exe.

  2. On the File menu, click Compare Directories.

  3. In the Select Directories dialog box, type the two folder names that you want to compare in the Dir1 and Dir2 boxes. If you want to include subfolders, click to select the Include subdirectories check box.

    The information in the right pane indicates the differences between the two folders.

  4. To view the actual file differences, click the line that you want in the Windiff.exe output results, and then on the Expand menu, click Left File Only, Right File Only, or Both Files.

    The color-coded results indicate what the file differences are.

You can also run Windiff.exe from the command line. For information about how to do so, or for more information about how to use Windiff.exe, see the Windiff.exe Help file (Windiff.hlp).

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.

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.

How to Use the Windiff.exe Utility - Windows Client (2024)

FAQs

How to Use the Windiff.exe Utility - Windows Client? ›

Start Windiff.exe. On the File menu, click Compare Files. In the Select First File dialog box, locate and then click a file name for the first file in the comparison, and then click Open. In the Select Second File dialog box, locate and then click a file name for the second file in the comparison, and then click Open.

How to compare two text files in Windows? ›

  1. Type the following command to compare two similar files in ASCII mode and press Enter: fc /L filename1.txt filename2.txt.
  2. Type the following command to compare two files displaying only the first line that is different and press Enter: fc /a filename1.txt filename2.txt.
May 13, 2021

How to compare the checksum of two files in Windows? ›

Solution:
  1. Open the Windows command line. Press Windows + R, type cmd and press Enter. ...
  2. Go to the folder that contains the file whose MD5 checksum you want to check and verify. Command: Type cd followed by the path to the folder. ...
  3. Type the command below: certutil -hashfile <file> MD5. ...
  4. Press Enter.
Jul 9, 2024

How to compare two binary files in Windows 10? ›

4 Answers. As @dhiwakar-ravikumar already answered, you can use the "file compare" ( fc ) Windows command to compare 2 files (or sets of files), and use the /b parameter to do a binary comparison. Also note that if the extension of the files to compare is one of .exe , .com , . sys , .

How to compare the contents of two files? ›

Compare two files (IDE)

In Solution Explorer, select two files (use Ctrl-click to select), you can right-click and choose Compare Selected to open the diff view with just those two files. Or, right-click on one of the files you want to compare and choose Compare With.... The Open File dialog appears.

How to use Windiff? ›

To compare two files by using Windiff.exe, follow these steps:
  1. Start Windiff.exe.
  2. On the File menu, click Compare Files.
  3. In the Select First File dialog box, locate and then click a file name for the first file in the comparison, and then click Open.
Dec 26, 2023

What command compares 2 text files? ›

We can compare the files with this command. Type diff , a space, the name of the first file, a space, the name of the second file, and then press Enter.

How do you compare two EXE files? ›

Start Windiff.exe. On the File menu, click Compare Files. In the Select First File dialog box, locate and then click a file name for the first file in the comparison, and then click Open. In the Select Second File dialog box, locate and then click a file name for the second file in the comparison, and then click Open.

How to use checksum in Windows? ›

How to Verify the Checksum of a Downloaded File in 5 Easy Steps
  1. Windows — Download the File. ...
  2. Open a Command Prompt. ...
  3. Go to The Directory Where the File Is Saved. ...
  4. Type certUtil –hashfile [Filename] SHA256 to Generate the Checksum. ...
  5. Compare the Two Checksums. ...
  6. Linux—Download the File. ...
  7. Open a Terminal Window.

What is the tool to compare files in two folders? ›

WinMerge is an Open Source differencing and merging tool for Windows. WinMerge can compare both folders and files, presenting differences in a visual text format that is easy to understand and handle.

Does Windows 10 have a file comparison tool? ›

To compare files in Windows 10, launch File Explorer and select the two folders you wish to compare. Then, right-click on the folder, select “Compare” from the context menu. A window will appear showing the differences between the contents of the two folders.

What program can find the difference between two files? ›

Diff Checker is a data comparison tool that computes and shows the differences between the contents of files.

What is the best binary diffing tool? ›

Bindiff is probably one of the most useful tools for comparing two binaries. It is used with IDA and can compare two IDB files. According to the documentation, Bindiff works as follows: BinDiff works on the abstract structure of an executable, ignoring the concrete assembly-level instructions in the disassembly.

What is the tool for comparing two text files? ›

Use the diff checker to compare code files for debugging or compare creative text files to ensure you avoid plagiarism or duplicate content. A text diff tool automatically highlights any detected text difference, making fixing any errors in your text documents much easier.

What is the best way to compare two data files? ›

One common approach is to use statistical tests to compare the distributions of different features in the two datasets. For example, you could use a t-test to compare the mean values of a particular feature in the two datasets or a chi-squared test to compare the proportions of different categories in the two datasets.

What is free code comparison tool? ›

Code Compare is a free compare tool designed to compare and merge differing files and folders. Code Compare integrates with all popular source control systems: TFS, SVN, Git, Mercurial, and Perforce.

Can Notepad ++ compare text files? ›

After opening both files, from the app's menu bar, select Plugins > Compare > Compare. The Compare plugin will do its job, which is to start highlighting the differences in your files. You'll instantly see your files' differences highlighted.

Is Windiff available in Windows 10? ›

It works in Windows 10 but you might find problems from time to time. Whichever source you get it from, it is a very old tool that is no longer developed or supported.

How to compare two text files in Word? ›

Open one of the two versions of the document that you want to compare. On the Review menu, select Compare Documents. In the Original document list, select the original document. In the Revised document list, browse to the other version of the document, and then select OK.

Top Articles
How can you limit liability in a partnership agreement?
5 1/2 Things About Growth Mindset From Dr. Tromp
What Is Single Sign-on (SSO)? Meaning and How It Works? | Fortinet
Where To Go After Howling Pit Code Vein
Radikale Landküche am Landgut Schönwalde
Davita Internet
Yogabella Babysitter
How To Be A Reseller: Heather Hooks Is Hooked On Pickin’ - Seeking Connection: Life Is Like A Crossword Puzzle
Overnight Cleaner Jobs
DENVER Überwachungskamera IOC-221, IP, WLAN, außen | 580950
Craigslist Cars And Trucks Buffalo Ny
Gw2 Legendary Amulet
Nwi Police Blotter
13 The Musical Common Sense Media
Zoebaby222
More Apt To Complain Crossword
Los Angeles Craigs List
Craigslist Mpls Cars And Trucks
Les Schwab Product Code Lookup
2016 Ford Fusion Belt Diagram
Wilmot Science Training Program for Deaf High School Students Expands Across the U.S.
SXSW Film & TV Alumni Releases – July & August 2024
Boscov's Bus Trips
Air Quality Index Endicott Ny
Craigslist Wilkes Barre Pa Pets
Parkeren Emmen | Reserveren vanaf €9,25 per dag | Q-Park
What Equals 16
Mjc Financial Aid Phone Number
Miller Plonka Obituaries
Halsted Bus Tracker
Fox And Friends Mega Morning Deals July 2022
Goodwill Houston Select Stores Photos
Shih Tzu dogs for sale in Ireland
Stafford Rotoworld
Craigslist Lakeside Az
Busted Newspaper Campbell County KY Arrests
Samantha Lyne Wikipedia
2007 Jaguar XK Low Miles for sale - Palm Desert, CA - craigslist
The Conners Season 5 Wiki
Achieving and Maintaining 10% Body Fat
Promo Code Blackout Bingo 2023
John M. Oakey & Son Funeral Home And Crematory Obituaries
Swoop Amazon S3
Frequently Asked Questions
Samsung 9C8
Cvs Minute Clinic Women's Services
Hampton Inn Corbin Ky Bed Bugs
What Is The Gcf Of 44J5K4 And 121J2K6
Turning Obsidian into My Perfect Writing App – The Sweet Setup
Southern Blotting: Principle, Steps, Applications | Microbe Online
Latest Posts
Article information

Author: Allyn Kozey

Last Updated:

Views: 6182

Rating: 4.2 / 5 (43 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Allyn Kozey

Birthday: 1993-12-21

Address: Suite 454 40343 Larson Union, Port Melia, TX 16164

Phone: +2456904400762

Job: Investor Administrator

Hobby: Sketching, Puzzles, Pet, Mountaineering, Skydiving, Dowsing, Sports

Introduction: My name is Allyn Kozey, I am a outstanding, colorful, adventurous, encouraging, zealous, tender, helpful person who loves writing and wants to share my knowledge and understanding with you.