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

  1. @ECHO OFF
  2. REM This is COUNTLNS.BAT
  3. REM
  4. REM COUNTLNS.BAT counts the number of lines in text files.
  5. REM
  6. IF %1!==! GOTO OOPS
  7. ECHO Counting lines in %1
  8. FIND /C /V "!@#$" %1
  9. GOTO END
  10. :OOPS
  11. ECHO Enter the name of the file
  12. ECHO whose lines you want to
  13. ECHO count after the %0
  14. :END