- PowerShell 命令(推薦,功能強(qiáng)大)
基本用法:
powershell
查看當(dāng)前目錄下所有文件夾的大小
Get-ChildItem -Directory | ForEach-Object {
.FullName | Measure-Object -Property Length -Sum).Sum
[PSCustomObject]@{
Directory = size / 1MB, 2)
Size_GB = [math]::Round(size = (Get-ChildItem -Recurse -File
size, $.Name)
}