home *** CD-ROM | disk | FTP | other *** search
- @ECHO OFF
- REM This is CMP.BAT
- REM
- REM CMP.BAT lets you compare two files (or sets of files, using wildcards)
- REM without asking whether you want to compair more files after you finish.
- REM It also uses the DOS 5.0 /N= switch to trick DOS into comparing files
- REM of unequal lengths (although it will still chohe after ten (10)
- REM mismatches). You can add DOS 5.0 switch at the end of the command line,
- REM and you can see what the switches do by entering CMP with no parameters
- REM after it.
- REM
- REM It uses DOS 5.0 /N= switch
- REM
- IF %2!==! GOTO OOPS
- ECHO N | COMP %1 %2 %3 %4 /N=99999
- GOTO END
- :OOPS
- ECHO Enter two filenames (or sets of files, using wildcards) after
- ECHO %0 to compair them. Add (DOS 5.0 only) switch if you want:
- ECHO.
- ECHO /D display differences in decimal
- ECHO /A display differences in ASCII
- ECHO /L display line number differences
- ECHO /C do NON-case-sensitive compare
- :END