ULTRAEDIT VS. CSHARP

ULTRAEDIT VS. CSHARP

1

    Mar 23, 2007#1

    hi!!
    I'm from Spain, sorry about my bad English... :roll: I make an application in C#. In a form, I have to open Ultraedit with 2 files, and then compare them.

    I need to know if Ultraedit returns some value to know if the files are equals or they are differents, to control it with C# code.

    Thank you for the help

    344
    MasterMaster
    344

      Mar 23, 2007#2

      You can do a

      Code: Select all

      fc file1.txt file2.txt
      from DOS-level to see if files are equal.

      EDIT:

      Here is a batch-file to do the job automatically. Its german, cause I'm low on time ... but its easy):

      Code: Select all

      @echo off
      
      IF "%1%"=="" GOTO Fehler
      IF "%2%"=="" GOTO Fehler
      
      
      fc %1 %2 >nul
      if %ERRORLEVEL%==1 goto machwas
      
      echo Dateien sind gleich
      goto ende
       
      
      :machwas
      echo Dateien sind ungleich
      goto ende
      
      
      :Fehler
      echo Fehler. Bitte 2 Dateien als Parameter angeben ..
      goto ende
      
      :ende
      rds Bego
      Normally using all newest english version incl. each hotfix. Win 10 64 bit