+5 votes
1.9k views
Count and view number of files in a Windows 10 folder

in Windows 10 by (552k points)
reopened | 1.9k views

1 Answer

+3 votes
Best answer

1. View number of files in a Windows 10 folder from File Explorer
2. View number of files in a Windows 10 folder from CMD
3. View number of files in a Windows 10 folder from PowerShell
4. Count files from a Windows 10 directory

Windows 10 provides us with various options to manage our files and folders and the most natural thing is that every day they are created more and more without knowing with certainty how many files or folders we have, although this is not an elementary task if it can be of great help to know with Accuracy of the quantity of these objects for audit or control reasons. We tend to store content and information , often without control, which ends up generating material intakes that we usually don't know..

The most indicated when storing information is to carry it out in an orderly manner, thus being able to rank the data according to certain criteria and thus avoid the lack of control. In terms of projects or even shared resources we can find the problem of not knowing what is inside being able to see amount of files in a Windows 10 folder. TechnoWikis will give you different methods to count Windows 10 files in a simple but effective way.

Next, we also leave you the video tutorial with the necessary steps to be able to count files from a Windows CMD directory or Command Prompt..

To keep up, remember to subscribe to our YouTube channel! SUBSCRIBE


1. View number of files in a Windows 10 folder from File Explorer


With this process it will be possible to determine the number of folders and files in a given folder and all the subfolders that are in it.
Step 1

To use this method we simply have to right click on the folder and select the "Properties" option: image
Step 2

In the pop-up window we will go to the “General” tab and there we find the “Contains” section where we find the amount of files and folders in that folder:

image


2. View number of files in a Windows 10 folder from CMD


The command prompt console is ideal for many support tasks in Windows 10 because thanks to the help of numerous commands we can execute hundreds of tasks and one of them is to know the amount of files and folders in a defined path.
Step 1

The first thing will be to open command console or CMD. The syntax to be used will be the following:
 dir / a: -d / s / b "Route" | find / c ": \" 
Step 2

For example, we will execute the following:
 dir / a: -d / s / b "D: \ TechnoWikis1" | find / c ": \" 
Step 3

This will result in the number of files in that path: image
Step 4

If we want to count the subfolders in the indicated path we must execute the following syntax:
 dir / a: d / s / b "Route" | find / c ": \" 
In this case it would be:
 dir / a: d / s / b "D: \ TechnoWikis1" | find / c ": \" 
image

3. View number of files in a Windows 10 folder from PowerShell


Windows PowerShell is the most modern Windows 10 console for support tasks seeking to be the replacement of the command prompt and with which we can also obtain these details of files and folders.
Step 1

In this case, the first thing is to open Windows PowerShell and go there to the desired path with the CD command: image
Step 2

Once there, we will run the following cmdlet to access the details:
 (Get-ChildItem | Measure-Object) .Count 
image
Step 3

This command will count the first level elements, if we want to count only the folders in that root folder we execute the following:
 (Get-ChildItem -Directory | Measure-Object) .Count 
image
Step 4

If we want to count only the files, we execute the following:
 (Get-ChildItem -File | Measure-Object) .Count 
image
Step 5

Finally, if we want to recursively count both folders and files at the source, we must add the Resource command as follows:
  • Count all files and subfolders recursively:
 (Get-ChildItem -Recurse | Measure-Object) .Count 
  • Count all subfolders recursively:
 (Get-ChildItem -Recurse -Directory | Measure-Object) .Count 
  • Count all files recursively:
 (Get-ChildItem -Recurse -File | Measure-Object) .Count 
Step 6

If any of the source folders have permission problems we will see the error in PowerShell, but in the final part we find the details of the files or folders that can be read: image

4. Count files from a Windows 10 directory


When accessing any of the libraries in Windows 10 we can see that in the lower left part it is indicated how many elements exist there.
Step 1

In this case for example 64: image
Step 2

If we select X number of files, the number of objects that have been selected will be added: image

With any of these options we can know exactly how many objects exist in a folder in Windows 10.


by (3.5m points)
edited
The problem is that different methods give different results!

Related questions

+4 votes
1 answer
asked Sep 17, 2019 in Windows 10 by backtothefuture (552k points) | 336 views
+3 votes
1 answer
asked Jan 29, 2020 in Windows 10 by backtothefuture (552k points) | 274 views
+4 votes
1 answer
asked Nov 6, 2019 in Windows 10 by backtothefuture (552k points) | 823 views
+3 votes
1 answer
asked Mar 3, 2020 in Windows 10 by backtothefuture (552k points) | 2.6k views
+5 votes
1 answer
asked Sep 7, 2023 in Linux/Unix by backtothefuture (552k points) | 63 views
Sponsored articles cost $40 per post. You can contact us via Feedback

Most popular questions within the last 30 days

10,659 questions
10,791 answers
510 comments
3 users