The DIRCOMP application was designed to be a small command line tool that compares subdirectories and looks for dissimilarities between files (different sizes or creation dates as well as missing files).
You can have the command copy files from the first subdirectory to the output subdirectory. In some ways, this is similar to the XCOPY and REPLACE commands in DOS except there are a number of enhancements which make DIRCOMP ideal for network maintenance work.
DIRCOMP is typically used in the process of backing up files from one drive to another. DIRCOMP allows you to easily copy every file and get rid of now non-existant files.