Answer the question
In order to leave comments, you need to log in
How to get a list of folders sorted by the number of files?
How to get a list of folders sorted by the number of files in it?
Means: either Explorer, or a file manager (which one?), Or command line, or a special program.
Time: Unlimited within reason.
Answer the question
In order to leave comments, you need to log in
Again Powershell:
$folders = Get-ChildItem -Path C:\ -Directory -Recurse | ForEach-Object {
[PSCustomObject]@{
Path=$_.FullName
Count=$_.FullName | Get-ChildItem -File | Measure-Object | Select-Object -ExpandProperty Count
}
} | Sort-Object Count -Descending
# Посмотреть потом первый десяток:
$folders | Select -First 10
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question