06-02-2009 09:41 AM
06-02-2009 10:26 AM
Apart other specialized utilities, for text files (*.c and *.h) you can rely on the system fc command redirecting the output to a file: the corresponding command is "fc FilePathName1.c FilePathName2.c > differences.txt". Differences output file is a text file that lists all differences found.
This is a rudimentary tool that can be useful for files with a similar structure and a limited set of differences; I use it when I have to discover the differences introduced between two close versions of a source code.
With the same scope I have used it to compare two UIR file after having saved them in text format (*.tui). Again, since the comparison is performed character by character it is useful for very similar files with few differences.
06-02-2009 03:27 PM
Wikipedia lists a number of file comparison utilities here, including several freeware options.
I can personally recommend Beyond Compare, which is excellent but not free.
Colin.
06-03-2009 10:07 AM
when using the "Edit/Diff/Diff with..." menu, you are prompted with a list of edit windows, aka. opened files: the files in the list are the files currently opened in CVI. so for the file from another project to appear here, you only have to open it in CVI before trying the diff. anyway, this diff tool seems completely useless...
personally, i would recommend WinMerge, which is excellent AND free ! it is graphical, simple to use and allows to diff entire directories, which is a plus when comparing 2 working copies of the same project.
06-04-2009 05:14 AM
dummy_decoy wrote:
i would recommend WinMerge
I can only agree with you dummy_decoy. WinMerge is a great tool to compare files (and more)
Regards,
06-04-2009 07:56 AM
dummy_dec…s answer let's me compare the files, though I don't know if it will let me compare files with teh same name. I was also hoping for a better compare interface, but hopefully that will at least be added to future versions of CVI.
06-04-2009 08:55 AM
Hi Steve,
The procedure described by dummy_dec is correct and will allow you to compare two files with the same filename. The tool available in CVI is rather simple, but it does give you the necessary tools to compare the two files.
What are some specific details that you like to see in the CVI Diff tool?