OPERATING SYSTEMSOS Windows

How to count the number of items in a folder on Windows 10


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

Count the number of items in the Recycle Bin

To see how many items are there in the Recycle Bin:

  1. Open the concerned Folder
  2. Select one item
  3. Press Ctrl+A
  4. Look in the bottom left corner.
  5. You will see the number there.

2] Using PowerShell

How to count the number of items in a folder

Run PowerShell as an administrator, using the Taskbar search, type the following and hit Enter:

Write-Host (dir <folder-path> | measure).Count;

Here replace <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.

How to count the number of items in a folder

Source link

Leave a Reply

Your email address will not be published. Required fields are marked *