
You may be able to compare files like those from Microsoft Office or images, but you can only compare them at the binary level. 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. Once you complete the steps, you will be able to see the difference between two similar files. Quick tip: You can view the list of options and more examples using the fc /? command. This example compares two files in different folders:įc C:\Users\USERACCOUNT\Downloads\filename1.txt C:\Users\USERACCOUNT\Downloads\new\filename2.txtĬonfirm the output to see the difference between the files. In the command, replace 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 want to compare. Type the following command to compare two files in different locations and press Enter:įc DRIVE:\PATH\TO\filename1.txt DRIVE:\PATH\TO\filename2.txt Type the following command to compare all the files (*.txt) in the same folder to the new file (filename2.txt) and press Enter: Type the following command to compare two files in baniry mode and press Enter:

Type the following command to compare two files in Unicode mdoe and press Enter: Type the following command to compare two files displaying only the first line that is different and press Enter:

So, we have our 260 chars for the whole path, including the file name, the extension, and the NUL terminator. Then, you can create a file in this folder with a name like this: 12345678.txt. The trailing minus 1 is for the invisible NUL terminator. Type the following command to compare two similar files in ASCII mode and press Enter: c:\very-long-folder-name > MAX Length(260-12-1) 247. In the command, replace filename1.txt and filename2.txt for the name of the files you want to compare. Type the following command to compare two similar files and press Enter: This example navigates to the Downloads folder: In the command, update the path with the location of the folder with the files to compare. Type the following command to browse to the folder with the files you want to compare and press Enter: Search for Command Prompt, right-click the top result, and select the Run as administrator option.To compare files with the fc command tool, use these steps:
#LONG PATH TOOL FULL VERSIONS 1. HOW TO#
How to compare files with the fc command on Windows 10
