Click here to Skip to main content
15,879,326 members
Articles / Desktop Programming / Windows Forms
Article

Verify the integrity of directory trees using Checksum Verifier

Rate me:
Please Sign up or sign in to vote.
4.33/5 (3 votes)
15 May 2008Ms-PL1 min read 35.3K   678   14   4
A small utility to verify checksums.

Introduction

In this article, I am introducing a small utility developed for catering some of my daily chores. I have an environment in which several replica (wozking copies) of the same code repository exist. The problem started to arose when the source tree grew to a higher level and daily changes from different locations increased at a higher level. For getting the same source to everywhere, I needed to compare the source tree and find the source files which were modified. Although there were several utilities for doing this task, I was not able to find any utility which could compare two hierarchical source trees and export the result to CSV format. As a result, I designed a small utility for catering to my specific needs.

Using the Utility

After extracting the binary distribution, you will find an executable, ChecksumVerifier.exe. Start the utility from ChecksumVerifier.exe.

The first screen will be as follows:

Clipboard01.jpg

Now, click  to select the directory trees to compare.

Clipboard02.jpg

Click Start Compare to perform the checksum verification.

Clipboard03.jpg

When the verification is going on, you will be able to see the results, if the files are identical or they are different. Different files will be shown by red highlighting with a yellow fore ground. Once the verification will complete, you will be prompted to export the result to a CSV file.

Image 4

Select Yes to export the report into CSV format. Enter the filename to save the report:

Clipboard05.jpg

The exported result will be like:

Image 6

Points of interest

I hope this will be useful for someone, and will avoid duplication of efforts by some needful.

History

  • Revision 1.0 - May 16, 2008 - Initial revision.

License

This article, along with any associated source code and files, is licensed under The Microsoft Public License (Ms-PL)


Written By
Architect
Canada Canada
Ashutosh is an avid programmer, who “lives to code”. One can always find him busy seeking challenging programming assignments on various complex problems ranging from Data management, Classification, Optimization, Security, Network analysis, Distributed computing.

He started his programming stint with “C”; he has also worked on C++, Visual Basic, JAVA, Perl, FoxPro, PASCAL, Shell Scripting, and Perl. Currently, he is proficient and working on C#.

His area of interest includes Distributed Computing, Analytic and Business Intelligence, Large Enterprise System Architectures, Enterprise Content Management.

He is an advocate of Open source and likes to share solutions with open source communities like
1.Stack Overflow
2. nHibernate
.

Award's :
Prize winner in Competition "Best article of May 2008"

Articles :
Click to see my CodeProject Articles

Blog :
Share a solution | Explore the .NET world

Link'd :


His Favorite(s) :
nHibernate - The best ORM.
nHibernate Contributed Tools

Comments and Discussions

 
GeneralNice tool -- only one small observation Pin
Gautam Sharma28-Oct-09 2:41
Gautam Sharma28-Oct-09 2:41 
GeneralRe: Nice tool -- only one small observation Pin
Ashutosh Phoujdar28-Oct-09 4:44
Ashutosh Phoujdar28-Oct-09 4:44 
Thanks Gautam Smile | :)

I am happy to see that this utility serve your purpose and avoid duplication of work. I will surely even off the UI alignments.

BTW, happy to see you again after our prolonged interaction over my another utility http://www.codeproject.com/Messages/2569439/MS-Visio.aspx[^]


GeneralNice .... Pin
Abhijit Jana20-May-08 2:04
professionalAbhijit Jana20-May-08 2:04 
GeneralRe: Nice .... Pin
Ashutosh Phoujdar20-May-08 5:36
Ashutosh Phoujdar20-May-08 5:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.