How can you compare two files?



You have downloaded a new set of mouse drivers, but you’re not sure if the new driver contains the same files as a previous version. What Windows command-line program can compare the contents of two files?

A) filecompare.exe

B) diskcompare.exe

C) compfile.exe

D) fc.exe


The answer: D) fc.exe

The FC program is very useful, and it has a number of command line options that can make comparisons based on binary format, case of letters, and other options.


The incorrect answers:

A) filecompare.exe
B) diskcompare.exe
C) compfile.exe
None of these programs actually exist. Sorry about that.

Want to know more? Watch “The Windows Command Line.”

The intricacies of the Windows command line may seem difficult to grasp, but with a little bit of practice and knowledge you’ll begin to take advantage of some powerful functionality. In this video, we’ll use the Windows command line to manage files and directories, edit files, perform diagnostics and tune the operating system.