Folder sizes should be checked to determine if they are using too much storage space. Additionally, you’ll also want to see folder sizes if you’re transferring a folder over the Internet or to another storage device.
Fortunately, viewing folder sizes is very easy on Windows devices. There are graphical and command-line based applications available in windows that give you several ways to do this.
You can easily see the folder size using Windows File Explorer. File explorer also provides information of other folders such as creation date, size, folder path and many more. Also, you can also use CLI applications like Powershell and CMD to get the folder size details. We will detail how to do it.
File Explorer provides easy access to file and folder details in Windows. As mentioned above, you can also view other details related to the folder using it.
Here’s how to view folder size using it;
Note: You will not be able to use this feature if it is disabled in the folder option.
To enable the Folder tipsfollow these steps;
CMD
in the countryside and press enter.C:\Windows\System32\rundll32.exe shell32.dll,Options_RunDLL 0\
Note: You can also open the Folder options by clicking the three dots in the top panel of File Explorer and then going to options
You can use folder properties to check different folder information such as its size, creation date, attributes and more. To see the folder size with this, follow these steps;
There are command lines you can use to check the folder size on the fly. It just requires you to run the command and it shows you all the details you want about the folder. To use this to view folder size, follow these steps;
CMD
. Now, press Ctrl + Exchange + come in.cd/d
to change the file directory. Instead of E:\folderuse the folder location where the file you want to view is located.cd/d E:\folder
dir
and press enter. This will give you a detailed overview of this directory. Powershell is another advanced CLI tool that you can use to check folder sizes. There are several command lines you can use for this. However, this article will suggest some useful and efficient ones. Here’s how to use Powershell to check file sizes.
Powershell
and press enter.cd
command to change the directory to the desired folder. Cd E:\images
switch((ls -r|measure -sum Length).Sum) {
{$_ -gt 1GB} {
'{0:0.0} GiB' -f ($_/1GB)
break
}
{$_ -gt 1MB} {
'{0:0.0} MiB' -f ($_/1MB)
break
}
{$_ -gt 1KB} {
'{0:0.0} KiB' -f ($_/1KB)
break
}
default { "$_ bytes" }
}
There is another command you can use to see the contents inside the folder along with their file sizes. To use it, paste this command into powershell. Just remember to change the folder directory E:\images to your wishGet-ChildItem -Path E:\images\ -Recurse | Where-Object {$_.PSIsContainer -eq $false}
This command does not require changing the root directory, so it is also easy to use. However, it does not show the total size of the folder.
To see hidden folders, go to File Explorer. Then click on the View tab and from the tab Show option check the hidden elements. You can also see which folders are kept hidden in the system using CMD. For this, open CMD and run this command; dir C: /a:h /b /s
Change the drive letter (it’s C: in this order) to any of your desired drives. This will instantly show hidden folders on that drive. This command will also work for older version of Windows.
When a folder path is longer than 260 characters, File Explorer cannot display its size. The solution for this is to reduce the path length or you can use other processes mentioned in this article to check the folder size.
Last weekend, I wrote about Warren Mosler's argument that the Fed's rate hikes could be…
Last weekend, I he wrote on Warren Mosler's argument that the Fed's rate hikes could…
Last week, the chairman of the Fed, Jerome Powell said, "the disinflationary process has begun".…
Earlier this week, I joined Romaine Bostick and Scarlet Fu Bloomberg TV. The Congressional Budget…
Tomorrow morning, I'll be joining CNBC's Squawk Box to talk about a new effort tax…
Former Vice President Mike Pence talks about privatizing Social Security. The remarks came Thursday before…