X-Git-Url: https://apps.delaporte.us/gitweb/dotfiles.git/blobdiff_plain/ff4bd2116c84600a2a5c981d06174eb792ff52a4..d625c5d197b2a714927dac8f2d3ec8422e4fa47c:/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 } <#