Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi, can anyone help
my question has several questions:
I want to compare the two directories. I think this is an Nt file compare.exe. I also want to creat a batch file for this, sothat I can give this to someone sothat he can just run it without performing the manual task.I started off like this (test123.bat):
rem compare 2 dir. and send to .txt file
comp %1 %2 > test123.txtthe command in dos
C:\>test123 c:\test\*.dll c:\test1\*.dllIs there a way to automate this in the script, sothat it can answer automatically no. For example the question comes afterwards
Compare more files (Y/N) ? nIs there a way just to show say the differnt date and size rather than the file contents?
not required!
not like this:
compare error at OFFSET 21C
file1 = EF
file2 = 61
Compare error at OFFSET 21D
file1 = 12
file2 = 13
rather like this:
i just want to see file1 is differnt in size with file2 or
file1 is differnt in date with file2
thanks in advance

In order to skip the prompt:
echo n|comp %1 %2
falko wrote:
> i just want to see file1 is differnt
> in size with file2 or file1 is differnt
> in date with file2That's very different. COMP disregards DATE totally. What do you mean?
BTW, to only get a message saying if the files are different or not, without the differences, supress the output and use the errorlevel (0 if files are equal, 1 if not). Something like this:
echo n|comp %1 %2 12> nul
if not errorlevel=1 echo %1 and %2 are equal>> test123.txt
if errorlevel=1 echo %1 and %2 are different>> test123.txt-- Leonardo Pignataro - Secret_Doom --
secret_doom@hotmail.com
www.batch.hpg.com.br_____________________________________________________

![]() |
Cabling Issues
|
Runtime error 2
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |