]> apps.delaporte.us Git - dotfiles.git/commitdiff
Higher max.
authorEdTheDev <edward@delaporte.us>
Sat, 8 Jan 2022 21:01:40 +0000 (15:01 -0600)
committerEdTheDev <edward@delaporte.us>
Sat, 8 Jan 2022 21:01:40 +0000 (15:01 -0600)
psmodules/drivespace.psm1

index 19fdc5e5b6648efb75c1737e5eb6547c5209f30c..342311bc046775948a86b3544079365a319f57be 100644 (file)
@@ -5,7 +5,10 @@ Find 10 largest files on the C drive.
 
 #>
 function Show-LargeFiles() {
 
 #>
 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
 }
 
 <#
 }
 
 <#