In case you need to compare folders and files, command line utility also allows the users to compare the content of the folders. In case you need to compare the content of two folders using the command prompt then Windows 10 provides the ability to do that. A powerful command line application, RoboCopy helps you to compare the content of multiple folders and numerous other operations. All it requires is the correct command to compare.
Comparing the Content of Folders using Command Line
In case you want to compare the content of 2 folders, you need to have two folders for comparing files. You can get the path and the name using the file explorer address bar. Copy the two paths as Path-1 and Path-2 in the command:
robocopy Path1 Path2 /L /NJH /NJS /NP /NS
which will look like:
robocopy "C:\Users\Muhammad\Desktop\Folder 1" "C:\Users\Muhammad\Desktop\Folder 2" /L /NJH /NJS /NP /NS
The results will also be in the form of text. The *Extra File and New File displays the unique files in the folders. The *Extra File tag shows that the file is present in the send directory and not in the first directory whereas, the New File tag tells you that the file is present in the first folder but not in the second folder. The command does not display the files that are common in the folder.
*EXTRA File Folder-2-File-1 *EXTRA File Folder-2-File-2 New File Folder-1-File-1 New File Folder-2-File-2
The command will not list the files that are common between the two folders.