From: EdTheDev Date: Sat, 2 Dec 2023 04:02:58 +0000 (-0600) Subject: Merge branch 'main' of github.com:edthedev/dotfiles into main X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/commitdiff_plain/a524ec9492d59e20c09c16ae2b85b8756331ce71?hp=f9a0da70cb503f7cbfb66ffc84b26b0a5b1fa0ed Merge branch 'main' of github.com:edthedev/dotfiles into main --- 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 } <#