set refresh to a switched parameter.

This commit is contained in:
Erik Eckert 2023-09-14 13:37:32 -06:00
parent 0781b1e7a8
commit fd1912d7d9

View File

@ -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"