Powershell folder size of folders without listing Subdirectories

后端 未结 10 2248
北海茫月
北海茫月 2021-01-30 21:40

I have found several resources that use the following script to get folder sizes

$colItems = (Get-ChildItem $startFolder -recurse | Where-Object {$_.PSIsContaine         


        
10条回答
  •  终归单人心
    2021-01-30 22:13

    from sysinternals.com with du.exe or du64.exe -l 1 . or 2 levels down: **du -l 2 c:**

    Much shorter than Linux though ;)

提交回复
热议问题