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 |
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.
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.
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:
To compare two directories respectively named C:\MyFolder and D:\MyBackup and their subdirectories, use:
dircmp C:\MyFolder D:\MyBackup /subdir
For advanced comparison using hashing, verbose output and file exclusions, you can use something like:
dircmp C:\MyFolder D:\MyBackup /subdir /hash:sha1 /display:verbose /exfile:my_list_of_exclusions.txt
Note: file and/or folder names that hold blank characters have to be quoted.
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. |
The latest version of DirCmp is always available for download from this address:
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.
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).
E-mail: webmaster@noeld.com
WWW: http://noeld.com