home *** CD-ROM | disk | FTP | other *** search
/ Shareware Supreme Volume 6 #1 / swsii.zip / swsii / 197 / DOS5BAT.ZIP / CMP.BAT < prev    next >
Encoding:
DOS Batch File  |  1991-11-03  |  921 b   |  25 lines

  1. @ECHO OFF
  2. REM This is CMP.BAT
  3. REM
  4. REM CMP.BAT lets you compare two files (or sets of files, using wildcards)
  5. REM without asking whether you want to compair more files after you finish.
  6. REM It also uses the DOS 5.0 /N= switch to trick DOS into comparing files
  7. REM of unequal lengths (although it will still chohe after ten (10)
  8. REM mismatches). You can add DOS 5.0 switch at the end of the command line,
  9. REM and you can see what the switches do by entering CMP with no parameters
  10. REM after it.
  11. REM
  12. REM It uses DOS 5.0 /N= switch
  13. REM
  14. IF %2!==! GOTO OOPS
  15. ECHO N | COMP %1 %2 %3 %4 /N=99999
  16. GOTO END
  17. :OOPS
  18. ECHO Enter two filenames (or sets of files, using wildcards) after
  19. ECHO %0 to compair them. Add (DOS 5.0 only) switch if you want:
  20. ECHO.
  21. ECHO /D display differences in decimal
  22. ECHO /A display differences in ASCII
  23. ECHO /L display line number differences
  24. ECHO /C do NON-case-sensitive compare
  25. :END