Click here to Skip to main content
12,072,067 members (58,594 online)
Click here to Skip to main content

Stats

21.2K views
960 downloads
14 bookmarked
Posted

Checksum Verification

, 22 Sep 2011 CPOL
Loop through all files in a folder/subfolders and run a checksum that is stored in a database. E-mail descrepancies and results.
ChecksumFiles.zip
ChecksumFiles
bin
obj
Properties
Settings.settings
Utilities
DRMC.zip
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <configSections>
        <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
            <section name="ChecksumFiles.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
        </sectionGroup>
    </configSections>

	<connectionStrings>
		<add name="MySqlConnectionString" connectionString="server=localhost;User Id=user;password=userpassword;Persist Security Info=True;database=DRMC" providerName="MySql.Data.MySqlClient"/>
	</connectionStrings>
	
	
    <applicationSettings>
        <ChecksumFiles.Settings>
            <setting name="DirectoryPath" serializeAs="String">
                <value>C:\MyFolder\Checksum\TestRoot</value>
            </setting>
            <setting name="NotificationFrom" serializeAs="String">
                <value>foo@foo.org</value>
            </setting>
            <setting name="ResultFile" serializeAs="String">
                <value>C:\MyFolder\Checksum\ChecksumResults.log</value>
            </setting>
            <setting name="ErrorFile" serializeAs="String">
                <value>C:\MyFolder\Checksum\ChecksumErrors.log</value>
            </setting>
            <setting name="NotificationTo" serializeAs="String">
                <value>foo@foo.org</value>
            </setting>
            <setting name="NewFiles" serializeAs="String">
                <value>C:\MyFolder\Checksum\NewFiles.csv</value>
            </setting>
            <setting name="ChangedFiles" serializeAs="String">
                <value>C:\MyFolder\Checksum\ChangedFiles.csv</value>
            </setting>
            <setting name="NotificationTitle" serializeAs="String">
                <value>Checksum Weekly Summary - </value>
            </setting>
        </ChecksumFiles.Settings>
    </applicationSettings>
	
</configuration>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

smoore4
Database Developer
United States United States
I am an MBA with a bunch of MS certifications. Technically, I am a DBA, but I do a good deal of sys admin work and web development using .NET. I like to focus on business intelligence, database design, messaging architectures, and web services.

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.160208.1 | Last Updated 23 Sep 2011
Article Copyright 2011 by smoore4
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid