Return to site

How to show folder size

broken image

In older versions, you had to use the /c switch to show those commas. In modern versions of Windows, the Command Prompt shows large numbers separated by commas (so: 25,000 instead of 25000).

broken image

Type the following command to make it work: dir /b Display Using Thousands Separator Using the /b switch with the DIR command strips away all excess information, displaying only the name of the folders and files in the current directory and not attributes like file size and time stamps. It can make things a little easier to parse, but it’s entirely optional. One more tip: Instead of cramming the main switch and the letter code together the way we did in our examples, you can use a colon to separate the switch from its optional codes.

broken image
broken image

So, for example, if you don’t want to see any directories in the results, you could use this command: dir /a-d You also can add a “-” (minus) in front of any of those letter codes to specify that the DIR command does not show that kind of file.