X-Git-Url: https://apps.delaporte.us/gitweb/dotfiles.git/blobdiff_plain/a5613ec6500de3fc6e8acbc2d1364d10886cfedf..514dd4387a94e5b9b1eed5354d2667737d5af093:/psmodules/file_management.psm1 diff --git a/psmodules/file_management.psm1 b/psmodules/file_management.psm1 index bbb6fa1..3622885 100644 --- a/psmodules/file_management.psm1 +++ b/psmodules/file_management.psm1 @@ -6,9 +6,10 @@ Find 10 largest files on the C drive. #> function Show-LargeFiles() { param( - [int]$Max=10 + [int]$Max=10, + [string]$path="C:\Users" ) - Get-ChildItem c:\ -r| sort -descending -property length | select -first $Max name, Length, FullName + Get-ChildItem $path -r | sort -descending -property length | select -first $Max name, Length, FullName } <#