From fd1912d7d90ca3c82b3b7d1ca4210146285d9bcc Mon Sep 17 00:00:00 2001 From: eeckert Date: Thu, 14 Sep 2023 13:37:32 -0600 Subject: [PATCH] set refresh to a switched parameter. --- Get-ProjectFolders.ps1 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Get-ProjectFolders.ps1 b/Get-ProjectFolders.ps1 index 567e06c..c7e1982 100644 --- a/Get-ProjectFolders.ps1 +++ b/Get-ProjectFolders.ps1 @@ -12,8 +12,15 @@ X:\CG | ProjectNumber | FullPath | filecount #> +[CmdletBinding()] +param ( + #refresh all data - causes the DB to be wiped clean and all file folders to be re-analyzed. + [Parameter(Mandatory = $false)] + [switch] + $Refresh +) -$Refresh = $true #refresh all data - causes the DB to be wiped clean and all file folders to be re-analyzed. +#refresh all data - causes the DB to be wiped clean and all file folders to be re-analyzed. $PathToDB = "M:\IT\Egnyte\DuplicateFiles\WorkingRun\Dedupe.SQLite"