PowerShell 計算資料夾內的檔案數量

$Folder = "D:\"
get-childitem $Folder -Recurs |
measure-object |
Select-Object -ExpandProperty Count

發佈留言