


The command “dir FolderA” lists the contents of FolderA, without first changing directory (cd command) to that folder. This time, we are adding a few more options to the dir command.

We used the dir command in the last step in order to simply list all of the files in the current directory. To create a text document that lists all of the files of a folder, type:.The first thing we’ll do is generate a text document for each folder that lists all of its files. Let’s learn how to compare the folders now. For the sake of this tutorial, we will assume that you do. If you do indeed have a FolderA and FolderB there, you should seem them listed. You should see a listing of the files and folders on the Desktop. We can optionally verify that the folders we want to compare are indeed on the Desktop.We can now verify that our folders are here. NOTE: The Windows file system is case insensitive, so typing “cd desktop” is the same as typing “cd Desktop”. ‘cd’ is the cmd’s command for “change directory.” This is how you navigate the folder structures of your storage media using the cmd. To change the directory to the desktop, type.This article will refer to the Command as simply “cmd” from here on out. Unless you ran the Command Prompt as Administrator, you should be in your default user library directory. Now that we have the Command Prompt open, you should see a blinking cursor preceded by the directory the Command Prompt is currently looking at.

NOTE: If you want to compare files in protected directories, such as the Windows directory, you must run the Command Prompt as “Administrator.” You can do this by right clicking on the Command Prompt item in the Start menu (in Windows Vista, 7, and 8), and choosing “Run as administrator.” This will open the Run dialog in Windows.įrom here, type “cmd” and hit Enter.
