How to act on the difference of two files?
Posted: 14 Feb 2006 13:27
I want to write:
if these two files are different
then do this piece of code
else do that piece of code
endif
I know fc (filecompare) does not give an exit code
depending on de difference of the files.
In UNIX I would write
if cmp file1 file2
then echo files are equal
else echo files are not equal
fi
How do I do this in dos?
if these two files are different
then do this piece of code
else do that piece of code
endif
I know fc (filecompare) does not give an exit code
depending on de difference of the files.
In UNIX I would write
if cmp file1 file2
then echo files are equal
else echo files are not equal
fi
How do I do this in dos?