Quote: Originally Posted by premson86
Use the below comand in windows powershell
(Get-ChildItem "C:\My Folder" -force -recurse).Count
This will give you the number of files in "C:\My Folder" including hidden and system file.
-recurse parameter includes files in sub folders.
you might want to add the erroraction of silentlycontinue, e.g.,
(dir "C:\Windows" -fo:$true -ea silentlycontinue -rec).Count
try both with and without to see the difference.