Hi everybody,
I try to compare 2 files with Beyond compare using Matlab. Actually that is quite easy. The problem is, that Beyond compare does not close itself. I always have to close it by my own.
My code in Matlab looks like:
dos('"C:\Beyond Compare 3\BCompare.exe" "file1.txt" "file2.txt"')
Now I have to close Beyond Compare by my own. When the two files are equal I get 1 as my output, when they differ I got 0. But I want that automatically. I tried:
dos('"C:\Beyond Compare 3\BCompare.exe" /closescript "file1.txt" "file2.txt"')
But this does not work. Does anybody has an idea? I only want to know in an easy way, if both files are equal.
Thank you in advance.
I try to compare 2 files with Beyond compare using Matlab. Actually that is quite easy. The problem is, that Beyond compare does not close itself. I always have to close it by my own.
My code in Matlab looks like:
dos('"C:\Beyond Compare 3\BCompare.exe" "file1.txt" "file2.txt"')
Now I have to close Beyond Compare by my own. When the two files are equal I get 1 as my output, when they differ I got 0. But I want that automatically. I tried:
dos('"C:\Beyond Compare 3\BCompare.exe" /closescript "file1.txt" "file2.txt"')
But this does not work. Does anybody has an idea? I only want to know in an easy way, if both files are equal.
Thank you in advance.
Comment