Here is a simple trick that will show you how to count the number of items in a folder on Windows 10. You can do it via File Explorer or by using PowerShell.
How to count the number of items in a folder
1] Via Explorer
To see how many items are there in the Recycle Bin:
- Open the concerned Folder
- Select one item
- Press Ctrl+A
- Look in the bottom left corner.
- You will see the number there.
2] Using PowerShell
Run PowerShell as an administrator, using the Taskbar search, type the following and hit Enter:
Write-Host (dir <folder-path> | measure).Count;
<folder-path> with the actual path. For example:
Write-Host (dir D:\Wallpapers | measure).Count;
The number will be displayed.
Now, some of you might want to take a look at these Windows File Explorer Tips and Tricks post.
- Tags: Folder