$files = get-childitem >folder path here< -filter >search criteria here< $files.count
$totalSize = ($files | Measure-Object -Sum Length).Sum / 1GB $totalSize
No comments:
Post a Comment