Is there a command line directory tree structure comparison tool?

R

Rod Newton

As far as I know "diff" compares only the content of two files but not the directory tree structure.
I would appreciate to have a command line tool which compares recursivly 2 directory trees similar to
(notice the arrow direction in the mid):

17.02.2005 11:31 1.813 D:\work\test.dat -> 21.01.2005 19:01 1.456 D:\work\test.dat
16.01.2005 14:31 1.443 D:\work\test2.dat <- 21.02.2005 17:12 1.233 D:\work\test2.dat
not existing <- 21.02.2005 19:01 1.456 D:\work\test3.dat
....

Rod
 
P

Philip Herlihy

I think robocopy (resource kits - search on microsoft.com for free download
of toolkit) will do this, if you set it to do a dummy run. Amazing
utility...
 
J

James Hahn

You can use > to redirect any DOS command to a file, and use diff to compare
the files.

eg
DIR/s C:\Work1\Test >Dir1.txt
DIR/s C:\Work2\Test >Dir2.txt
and then use diff on the DIR1.txt and Dir2.txt files.
 
S

Stan Brown

[cc'd to previous poster; follow-ups in newsgroup suggested]

As far as I know "diff" compares only the content of two files but not the directory tree structure.
I would appreciate to have a command line tool which compares recursivly 2 directory trees similar to
(notice the arrow direction in the mid):

17.02.2005 11:31 1.813 D:\work\test.dat -> 21.01.2005 19:01 1.456 D:\work\test.dat
16.01.2005 14:31 1.443 D:\work\test2.dat <- 21.02.2005 17:12 1.233 D:\work\test2.dat
not existing <- 21.02.2005 19:01 1.456 D:\work\test3.dat
...

My own shareware program CMP will do this. The /2 option tells it
to take the older file of each pair as file 1, and the /S option
tells it to compare subdirectories. If you like UNIX 'diff' format
that's selectable with /U.

If you like the program and keep using it after 30 days, you need
to register it ($15 on line).

Free download:
http://www.simtel.net/product.download.mirrors.php?id=15799
or ftp://garbo.uwasa.fi/pc/fileutil/cmp513.zip

On-line copy of user guide:
http://oakroadsystems.com/sharware/cmp.htm
 
O

OShah

(e-mail address removed) (Rod Newton) wrote in
As far as I know "diff" compares only the content of two files but not
the directory tree structure. I would appreciate to have a command line
tool which compares recursivly 2 directory trees similar to (notice the
arrow direction in the mid):

17.02.2005 11:31 1.813 D:\work\test.dat -> 21.01.2005 19:01 1.456
D:\work\test.dat 16.01.2005 14:31 1.443 D:\work\test2.dat <-
21.02.2005 17:12 1.233 D:\work\test2.dat not existing
<- 21.02.2005 19:01 1.456 D:\work\test3.dat ...

Rod

One of the windows support tools (see the support folder of your windows CD)
is a program called windiff. IIRC, it has a function that can compare two
directories.

Beyond that, most of the major file compare utilities also have a directory
compare feature.

http://www.tucows.com/filecomp95_default.html

For command line support, perhaps the Win32 ports of CVS and patch may be of
use to you.

--
------------------------------------------------------------------------
oshah [shexec32]
Control Panel -> System -> Advanced -> Error Reporting -> Choose Programs
-> Do not report errors for these programs:

Acrobat.exe
waol.exe

------------------------------------------------------------------------
 
J

Jimmy Andersson [MVP]

Is it not an option to use the tree command and output it into a file to do
a manual comparison?

Regards,
/Jimmy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top