pil*_*lau 4 windows filesystems
有没有办法计算和分解给定目录(或驱动器)的平均文件大小?
可以提供详细信息的东西,例如:|
等等。
也许您知道可以做到这一点的实用程序?
您可以在 Powershell 中轻松完成此操作
$foo = (Get-ChildItem -path "c:\your\file\path" -recurse | measure-object | select -expand Count)
$bar = ((Get-ChildItem -path "c:\your\file\path" -recurse | Measure-Object -property length -sum).sum /1MB)
$avrg = $bar / $foo
$avrg
Run Code Online (Sandbox Code Playgroud)
输出示例:
PS X:\> $avrg
1.03643417358398
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
23570 次 |
最近记录: |