
If you want it prettier: switch((ls -r|measure -sum Length). Furthermore it will likely count symlinks and junctions multiple times so it's at best an upper bound, not the true size (you'll have that problem with any tool, though).Īn alternative is PowerShell: Get-ChildItem -Recurse | Measure-Object -Sum Length TreeSize Free can be started from the context menu of a folder or drive, and it shows you the. So it will get sizes above 2 GiB wrong 1. TreeSize Free is a fantastic tool for finding out what's really going on with files on your PC. However, this has several problems because cmd is limited to 32-bit signed integer arithmetic.

Step 3: To check the folder size, right-click on it and open the context menu. You can just add up sizes recursively (the following is a batch file): offįor /r %%x in (folder\*) do set /a size+=%%~zx Step 1: Open the File Manager app on Windows 10.
