Windows – Get Number of Files In a Folder at Command Prompt
dir "C:\folder" /b/s |find /v /c "::"
This script returns the count of the files in a folder. This is especially useful if you are on a machine that has too many files in a folder to read from Windows Explorer.
