Use the find command:
find /c /v "asdf;akjdf;l" <filename
/c says count the number of lines
/v says which DO NOT CONTAIN
"asdf;akjdf;l" is something which obviously will not be in the file
<filename is the name of the file
Works every time
--- Ismael Martinez <ismael_mtz@...
> Iam trying to get the number of lines in a text file (.txt or .dat),
> does anyone know how I can do this using a batch file?
> Any response would be very appreciated.
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail.
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.