This script list numbers files by dir in select path
$folders = get-ChildItem -Directory -Path "C:\YOUR_PATH" $folders | ForEach-Object { $path = $_.FullName [pscustomobject]@{ Path = $path FileCount = (Get-ChildItem -Path $path -Recurse -File).Count } }
Thanks for read!
Top comments (0)