This application is going to display folder contents and also compare the contents of two folders. I am using a web application to display folder contents. By using this application, we can compare two folders easily. This application will display files not common to both folders.
Creating the web application in C#
First, create a web application in c#, and name it Folderviewer. Next import System.IO namespace. Next, create UI as shown below. Here I used 4 listboxes, 2 textboxes, 1 button, and some labels.
![File explorer]()
Button click event and code
Next Button_click event and copy this code
Running the application
Run the application, specify the folder path in each TextBox, and click the Show button.
It will display files not common to both folders as shown below.
![Web form]()