X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/blobdiff_plain/e738426da601f5495ab95a28cbcd5c5ddfba42c4..deeaaadbb2a3536a01baa9f7986402f1cb793263:/psmodules/drivespace.psm1 diff --git a/psmodules/drivespace.psm1 b/psmodules/drivespace.psm1 index 19fdc5e..342311b 100644 --- a/psmodules/drivespace.psm1 +++ b/psmodules/drivespace.psm1 @@ -5,7 +5,10 @@ Find 10 largest files on the C drive. #> function Show-LargeFiles() { - Get-ChildItem c:\ -r| sort -descending -property length | select -first 10 name, Length, FullName + param( + [int]$Max=10 + ) + Get-ChildItem c:\ -r| sort -descending -property length | select -first $Max name, Length, FullName } <#