home *** CD-ROM | disk | FTP | other *** search
- @ECHO OFF
- REM This is COUNTLNS.BAT
- REM
- REM COUNTLNS.BAT counts the number of lines in text files.
- REM
- IF %1!==! GOTO OOPS
- ECHO Counting lines in %1
- FIND /C /V "!@#$" %1
- GOTO END
- :OOPS
- ECHO Enter the name of the file
- ECHO whose lines you want to
- ECHO count after the %0
- :END