Discussion Locked

Comparing directories

0 helpful
8 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Is there a way to compare the contents of a directory and its sub-directories? I am comparing a directory in our test area to a directory of the same name in the live area and would like to see the programs that are missing.

Thanks

8 replies

by sixfourtykilo

Old dos versions used to come with a file called FC.COM which was a File Compare executable that would also allow you to compare directories. NT still comes with the file COMP.EXE. You can use either of these files to compare directories.

Hope this helps!
640k

by don christner

Two ways come to mind. Run Windows Explorer split screen (or two instances) and compare them. Or, from a DOS windows type: COMP path1 path2 -N=1. (Subsitute your paths for path1 and path2). This will show you differances between the two sets of files and show you if a file is not found in one of the paths.

Don

by lo

Try MAN CMP
or INFO CMP

Looks like the UNIX version of FC.

Can also do a dir of each, use editor to do dir on the other to see what isn't there (ugly and requires a good macro editor but, ...)

This discussion is closed to new replies.