|
|
|
|
|
|
|
Page Views :
|
3760
|
|
Downloads :
|
59
|
|
Rating :
|
Rate it
|
|
Level :
|
Advanced
|
|
|
|
|
Download
Files:
|
|
|
|
|
|
|
|
|
|
|
About Virchk
Virchk.cs is a file scanner utility, which traverses the files in a directory and all it's sub directories, to generate a MD5 hash signature footprint of the targeted extensions file.
This utility is authored by me (Ashish Banerjee). This utility is the C# avatar of a Java utility, also authored by me a couple of years back.
I re-wrote this utility from Java to C#, to gain insights into similarities and disparities between the two languages.
I found the Java utility (which uses similar algo. to this C# utility) useful for ensuring my virus scanner is not hood winked by emerging viruses. It has saved my day on more than one occasions.
I have also found this utility for version control of documents and source codes. To protect them against accidental or intentional changes.
C# features used
Operator overloading: see FileSig structure (Line 63, Virchk.cs).
Structures : again see FileSig structure.
Object Recursion: see DirTraverse class (Line 93, Virchk.cs).
MD5 hash : see Lines 231 to 237, Virchk.cs.
SOAP serialization: see Lines 171 to 205, Virchk.cs.
Regular Expressions: see Lines 362 to 378, Virchk.cs.
Compiling Virchk
From the current directory execute from a dos prompt:
namake all, It is assumed that you have .NET SDK installed and also have executed corvar.bat found in the bin dir. of the SDK from the dos prompt.
If all goes well Virchk.exe will be produced.
Executing Virchk
See usage Line number 335 of Virchk.cs.
First time execute
virchk U . test.xml
The test.xml will contain the SOAP serialized XML file. Use IE 5.5 or above to open the XML file.
For checking back use
virchk U . test.xml
Disclaimer
No warranties claims are made by the author, use it at your own risk.
|
|
Comment Request!
Thank you for reading this post. Please post your feedback, question, or comments about this post
Here.
|
|
|
|
|
Login
to add your contents and source code to this article
|
|
|
|
|
|
|
|
|
|
|
|
Ashish Banerjee
Ashish Banerjee is a Java Programmer having 14 years of software development experience. He is the Tech. Director of Director of Osprey.
|
|
|
|
|
|
|
|
|
C# Consulting is founded in 2002 by the founders of C# Corner. Unlike a traditional
consulting company, our consultants are well-known experts in .NET and many of them
are MVPs, authors, and trainers. We specialize in Microsoft .NET development and
utilize Agile Development and Extreme Programming practices to provide fast pace
quick turnaround results. Our software development model is a mix of Agile Development,
traditional SDLC, and Waterfall models.
|
|
Click here to learn more about C# Consulting. |
|
|
|
|
|
|
|
Introducing MaxV - one click. infinite control. Hyper-V Hosting from MaximumASP.
Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon.
Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees.
As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
|
Dynamic PDF
ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications.
|
Nevron Chart for .NET 2010.1 Now Available
The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Presentation or Scientific apps. Download evaluation now.
|
ASP.NET 4 Hosting
Get 2 Months Free of ASP.NET Hosting for Only $4.95/month! Receive FREE MS SQL and MySQL Databases Including ASP.NET 4/3.5, MVC 3.0, Silverlight 4, Windows 2008/IIS 7.0 Plus FREE IIS 7 Modules. Host UNLIMITED ASP.NET Web Sites – Click Here!
|
|
|
|
|
|
|
|
|
|
|
|
|