Dave Roth’s May 2006 issue of Windows Scripting Solutions (link) article discusses a simple way to detect differences between directories. Sure tools exist that do this already, but this article uses a Perl script to solve the problem. The reason for using a script instead of existing tools is that it is much easier to modify the script than it is to modify C code, recompile and relink. The former requires an editor and Perl, the latter requires an editor, a C compiler, a linker (optionally a debugger) and a lot of knowledge of C. Don’t get me wrong, I love C, but Perl is much faster to write and use. :)
To read this article requires a subscription to Windows Scripting Solutions.