Posts

Showing posts from January, 2022

batch file - counting number of files in folder and storing in a variable

 c:\WINDOWS\LiveKernelReports> attrib.exe /s ./*.dmp | find /v "File not found - " | find /c /v "" output : count of files present in that folder (including subfolder files aswell)