Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

rita1985

macrumors newbie
Original poster
Dec 25, 2007
13
0
compare A.txt with B.txt using windiff and display an output of no configuration found if both txt file is the same and the output will display the differences if the files are different.

how should i program it by using sed.exe and winDiff.exe?
 

satyam90

macrumors regular
Jul 30, 2007
242
0
Bangalore, India
As windiff is a GUI tool, you cannot expect the result after comparision. Even when you run windiff from command prompt, it will open the GUI and show differences for you.

If you want to open windiff GUI with files compared, use the following command:

Code:
WinDiff.exe A.txt B.txt

If path where windiff.exe lies is not set, you need to give the full path of windiff.exe and pass two arguments A.txt and B.txt.
 

rita1985

macrumors newbie
Original poster
Dec 25, 2007
13
0
As windiff is a GUI tool, you cannot expect the result after comparision. Even when you run windiff from command prompt, it will open the GUI and show differences for you.

If you want to open windiff GUI with files compared, use the following command:

Code:
WinDiff.exe A.txt B.txt

If path where windiff.exe lies is not set, you need to give the full path of windiff.exe and pass two arguments A.txt and B.txt.

My batch script

ECHO off
set path=%PATH%;D:\DS

d:\ds\windiff D:\11\Share\test1.txt d:\11\Share\test2.txt

How should i program in order to take the difference after windiff have compare to another file (eg:test3.txt)?

del tmp*.txt
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.