Forum Discussion
Mihir Yelamanchili
Nov 22, 2018Brass Contributor
Is there any way that I can get all the folders and files count inside a folder?
Is there a way to get the count of all the files, folders under a particular folder using PowerShell command?
VasilMichev
Nov 23, 2018MVP
Yes, simply use the -Recurse parameter? For example:
(dir D:\Downloads\ -Recurse).Count dir . -Recurse | measure