Size is a number ( ) containing the actual byte count, which is what facilitates further programmatic processing. FriendlySize contains a friendly, auto-scaled string representation of the size, whereas. Sample output from the last command: FullName FriendlySize SizeĬ:\Users\jdoe\Projects 104.07mb 109127742 Get-DirectorySize -Depth 1 -ExcludeSelf | # to smallest, showing only the 5 largest ones: # Get the size of all child directories and sort them by size, from largest # Recursively report the sizes of all subdirectories in the current directory. Sample calls, based on function Get-DirectorySize defined below: # Get the size of the current directory (only). better integration with other cmdlets for composable functionality.A PowerShell solution that builds on montonero's helpful answer and improves the following aspects:
0 Comments
Leave a Reply. |