Written by Eric Wyatt (last updated January 11, 2021)
We have discussed two ways to count the number of files and subfolders within a folder or directory. The first methodutilized PowerShell, Microsoft's newest and more powerful command-line editor. The second method discussed using the Command Line . This is the older, but more-often known command line editor. Both of these methods work fast and, depending on the command, provide the information you are looking for.
Some individuals may find using a command line function to be intimidating, and not something they want to mess with. If you fall into that group, you are not alone. Even so, you can still obtain a count of the number of items within a folder.
This method is done without ever needing to launch a program or application, so no additional software is needed. To obtain the counts, follow these steps:
Figure 1. A folder's Properties window showing the number of files and folders.
While this method is fast and easy, there are a few things to bear in mind when using this technique. First, the counts provided in this manner have been known to not always be accurate. Depending on your version of Windows, this feature can be buggy and incorrect. If you are needing to know the number of files or folders within a folder or directory for moving, backup, or a critical reason, it is recommended to try using the PowerShell or Command Line methods mentioned earlier and compare the results. The second item to keep in mind is that, by default, the Properties window does not include hidden items in its counts; you can include these by checking the box next to "Hidden" within the properties window.
This tip (9965) applies to Windows 10.
If you are done using Windows for a while, it is a good idea to shut down your system. Windows provides several different ...Discover More
It is not unusual for you to work with several (and sometimes many) programs at the same time. Each program is displayed ...Discover More
The primary method to connect external devices to computers today is USB. Learn about the types of USB and what makes ...Discover More