Showing posts with label Widgets. Show all posts
Showing posts with label Widgets. Show all posts

POWERSHELL: Get file count (with a filter) and total file size (in GB)

Search a path using a search criteria:
$files = get-childitem >folder path here< -filter >search criteria here<
$files.count
Sum the total size of the search results (in Gbs):
$totalSize = ($files | Measure-Object -Sum Length).Sum / 1GB
$totalSize

QR-Code Generator

Sometimes it is the simplest of pleasures…like QR-Code Generator.  -jst