DirCmp

Version 1.4 (May 2011)
© 2007-2011, Noël DANJOU
All rights reserved.

Table of Contents
Welcome
Package Content
Syntax
Return Codes (ERRORLEVEL)
History
Latest Version
Registration
Redistribution
Contact Details

 


Welcome

DirCmp is a command-line tool that allows you to compare two directories and optionally their subdirectories. The program reports files missing in either directory and whether some files are different or empty. You can also specify a list of files and/or folders to exclude during the comparison. The output can be redirected to a text file. Simply type dircmp in a Command window to learn more about the syntax of the program.

Note: versions 1.1 and later are Unicode only that means that it will only run in Windows XP and later. Windows 98, ME and 2000 are not supported anymore.

 


Package Content

The package is provided as a compressed (zip) archive that holds a few files. The included files are described in the table below.

File Description
dircmp.exe The DirCmp program.
exclusions.txt Example of an exclusion file.
license.htm File only included with the full version.
readme.htm This file.
msvcr100.dll * Microsoft C Runtime Library.

* These files are not needed if the Microsoft Visual C++ 2010 Redistributable Package is installed on your system.


Syntax

DirCmp features many parameters, for a whole list of the supported parameters and a description, type the following command in a Command window:

dircmp /?

Examples:


Return Codes (ERRORLEVEL)

When DirCmp is used in a batch file, you can use ERRORLEVEL to check the completion code returned by the program. The possible return codes are listed in the table below.

Code Description
0 Success.
1 Syntax error or help/registration information displayed.
2 System error (e.g. file or folder exclusions could not be loaded).
3 Comparison failed.
4 Files or folder mismatches detected.

History

May 24, 2011 - Version 1.4 (build 41.2)

  • fixes an issue that could lead to invalid reported durations.

January 24, 2011 - Version 1.3 (build 38.1)

  • fixes an issue that prevented the program from browsing root directories.
  • improves Microsoft SDL compliance.

May 24, 2010 - Version 1.2 (build 34.1)

  • adds tolerance value to the /date parameter.
  • fixes display issues with some UNICODE characters.

March 10, 2010 - Version 1.1 (build 33.2)

  • UNICODE version only.
  • adds /exfolder parameter to support folder exclusions in addition to file exclusions.
  • adds /date parameter to compare file dates in addition to length and hash.
  • adds /security parameter to test file ownership and DACL.
  • adds support for both SHA1 and MD5 hash algorithms.
  • adds support for extended-length paths (up to 32767 characters).
  • improves comparison efficiency.

April 19, 2007 - Version 1.0 (build 4.4)

  • first release.

Latest Version

The latest version of DirCmp is always available for download from this address:

http://noeld.com/programs.asp?cat=misc#dircmp


Registration

The demo version of this application only features a subset of the parameters supported by the registered version. When advanced parameters are used with the demo version, a REGISTRATION REQUIRED message will be displayed and the parameters will be ignored.

To register, click the link just below and follow the instructions.

https://www.regnow.com/checkout/cart/add/4076-13

Alternatively, you can type the following command in a Command window to open the registration page in the default browser:

dircmp /register

Orders and delivery are handled by the Register Now company.


Redistribution

Computer magazine publishers are welcome to redistribute the application as-is on their complimentary or monthly CDs. Any other redistribution of the application with commercial products is strictly forbidden without my written permission. Please contact me for a license agreement (see Contact Details).


Contact Details

E-mail: webmaster@noeld.com

WWW: http://noeld.com