Solved how to take count of the file in .csv format within a folder

February 16, 2015 at 20:11:01
Specs: Windows 7
i am trying to take count of all the files only in .csv format in a particular folder?
can anyone let me know.

message edited by iswarya


See More: how to take count of the file in .csv format within a folder

Report •


#1
February 16, 2015 at 22:37:39
✔ Best Answer
::====== script starts here ===============
:: countcsv.bat 2015-02-17 13:33:08.74
@echo off & setLocal enableDELAYedeXpansioN

pushd d:\files
set N=

:main
for /f "tokens=* delims= " %%a in ('dir/b *.csv') do (
set/a N+=1
)
echo.!N!
::====== script ends here =================

=====================

M2 Get custom script or take private lessons


Report •
Related Solutions


Ask Question