use winDiff in msdos

Discussion in 'Mac Programming' started by rita1985, Jan 7, 2008.

  1. rita1985 macrumors newbie

    Joined:
    Dec 25, 2007
    #1
    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?
     
  2. satyam90 macrumors regular

    satyam90

    Joined:
    Jul 30, 2007
    Location:
    Bangalore, India
    #2
    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.
     
  3. rita1985 thread starter macrumors newbie

    Joined:
    Dec 25, 2007
    #3
    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
     

Share This Page