banner



How to compare two files with Command Prompt on Windows 10

On Windows ten, "fc" is a command-line tool that comes congenital-in to the system, and it allows you to compare two similar files to decide how they inverse over fourth dimension. Usually, fc volition exist helpful for comparing simple text files, determining the changes made to a script, detecting if a file has been modified, and similar scenarios.

The tool can compare two similar files or the newest version confronting all the other files in the same location. And it includes options to examine the changes at the text level, or in Unicode, ASCII, or binary manner.

In this Windows 10 guide, you lot will learn steps to apply the fc tool to compare files with Control Prompt.

How to compare files with the fc command on Windows ten

To compare files with the fc control tool, use these steps:

  1. Open up Commencement.
  2. Search for Control Prompt, right-click the top result, and select the Run as ambassador option.
  3. Type the following command to browse to the folder with the files you want to compare and press Enter:

    cd PATH\TO\FILES

    In the control, update the path with the location of the folder with the files to compare.

    This instance navigates to the Downloads folder:

    cd C:\Users\USERACCOUNT\Downloads

  4. Blazon the following control to compare two like files and press Enter:

    fc filename1.txt filename2.txt

    In the command, supercede filename1.txt and filename2.txt for the proper noun of the files yous want to compare.

    fc compare files command Source: Windows Central

  5. Blazon the post-obit command to compare two similar files in ASCII mode and printing Enter:

    fc /L filename1.txt filename2.txt

  6. Type the following control to compare two files displaying but the first line that is different and printing Enter:

    fc /a filename1.txt filename2.txt

    fc compare two files showing first line Source: Windows Central

  7. Blazon the post-obit command to compare 2 files in Unicode mdoe and press Enter:

    fc /u filename1.txt filename2.txt

    fc compare two files in Unicode mode Source: Windows Primal

  8. Blazon the following command to compare 2 files in baniry manner and press Enter:

    fc /b filename1.txt filename2.txt

    fc compare two files in binary mode Source: Windows Key

  9. Blazon the following command to compare all the files (*.txt) in the same folder to the new file (filename2.txt) and press Enter:

    fc *.txt filename2.txt

    fc compare multiple files Source: Windows Fundamental

  10. Type the post-obit control to compare two files in different locations and press Enter:

    fc DRIVE:\PATH\TO\filename1.txt DRIVE:\PATH\TO\filename2.txt

    In the command, supervene upon DRIVE for the storage location drive letter and \PATH\TO\filename1.txt and \PATH\TO\filename2.txt with the path and name of the files you desire to compare.

    This example compares two files in different folders:

    fc C:\Users\USERACCOUNT\Downloads\filename1.txt C:\Users\USERACCOUNT\Downloads\new\filename2.txt

    fc compare two files in different location Source: Windows Central

  11. Confirm the output to see the difference between the files.

    Quick tip: Yous can view the list of options and more than examples using the fc /? control.

Once you complete the steps, you will be able to run into the difference between ii similar files.

While the tool allows you to compare files, remember that this is a basic tool meant to use it with text files and extensions like .exe, .com, .sys, .obj, .lib, or .bin. You may be able to compare files similar those from Microsoft Office or images, but you can only compare them at the binary level.

More Windows x resources

For more than helpful articles, coverage, and answers to mutual questions about Windows 10, visit the following resources:

  • Windows x on Windows Central – All y'all need to know
  • Windows 10 assistance, tips, and tricks
  • Windows 10 forums on Windows Fundamental

Source: https://www.windowscentral.com/how-compare-two-files-command-prompt-windows-10

Posted by: wagnerolunnime1968.blogspot.com

0 Response to "How to compare two files with Command Prompt on Windows 10"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel