windows查看当前目录下文件夹大小的命令
Published in:2024-09-16 | category: windows
Words: 69 | Reading time: 1min | reading:

D盘突然爆红,我还以为是我环境下多了,最后发现是steam删游戏是假删。。。。

1
2
3
4
5
6
7
Get-ChildItem -Directory | ForEach-Object {
$sizeInBytes = (Get-ChildItem$_.FullName -Recurse | Measure-Object -Property Length -Sum).Sum
$sizeInGB =$sizeInBytes / 1GB
if ($sizeInGB -gt 1) {
$_.FullName + " " +$sizeInGB.ToString("F2") + " GB"
}
}
Prev:
【李飞飞的AI课】Introduction to Convolut
Next:
9-12月中旬(六级结束)任务整理