Solved count files in folders

July 31, 2011 at 03:52:43
Specs: Windows 7
If any one can help me i would really appreciate it
I need a batch script to count .mp3 files in a specific folder and the store the result in a variable to be used in the rest of my batch file
Thank you

See More: count files in folders

Report •

July 31, 2011 at 05:25:17
✔ Best Answer
for /f %%a in ('dir /b *.mp3 ^| find /v "" /c') do set fileCount=%%a

How To Ask Questions The Smart Way

Report •
Related Solutions

Ask Question