Hi Guys,
I am new to batch scripting.
I have to count the no of lines for all the files that is present in particular windows folder and save the result in a file.And it should delete the result.txt first while running it second time.
Example : Suppose a folder name is ABC and in the files a.dat,b.dat,c.dat files are present.
Result.txt will contain the below.
name file_createddt counts a.bat 7/16/2013 07:18:43 10 b.dat 7/16/2013 07:54:43 15 c.dat 7/16/2013 07:57:20 90
I tried using the below commands to count a single file count. But i dont know how to do this for multiple files in a single folder.
Type C:\a.txt | Find /V /C "ZZZXXXYYY" >> Result.txt
Thanks,
Jitu