Saturday, 24 August 2013

batch file filename / record cont

batch file filename / record cont

I am trying to create a batch file (displayed below) to get a count
records along with the file name in a group .csv files The batch file
below will output the record count of the first .csv file. Is there a way
to list all the record counts along with file name. Thanks
@echo off
for /F "tokens=3" %%f in ('find /V /C "-------------" *.csv') do ( echo
%%f ) >output.txt

No comments:

Post a Comment