top of page

PowerCompare - PowerShell script to compare two folders

Client: Personal project

Project Description: PowerCompare is a PowerShell script that provides a graphical interface for comparing the contents of two folders. It is intended to be simple and light.

Date: January 10, 2023


Project:

I developed this PowerShell script to be able to compare the contents of two folders. As soon as you launch it, it displays a GUI which allows you to select the two folders to compare.


As even the GUI part is in the script, it gives us a very simple and lightweight solution.


Here is the GitHub link for the project:


Features

  • Graphical interface with text boxes "Folder 1" and "Folder 2" to specify the folders to compare.

  • Browse buttons to select folders to compare

  • Button "Compare" to start the comparison

  • List showing the differences between the two folders, including name, type (file or folder), and presence in each folder.


Instructions for use

  1. Download the script

  2. Open a PowerShell window and navigate to the directory containing the script

  3. Run the script using the following command: .\NPowerCompare.ps1

  4. Use the "Browse" to select folders to compare

  5. Click the "Compare" to start the comparison.


System requirements

PowerShell 5.0 or higher

Windows operating system


License

This script is subject to the MIT license. You are free to use, modify and distribute the script provided you include the original copyright and license notice.



0 views
bottom of page