diff --git a/util/windows.psm1 b/util/windows.psm1 index ab919b0..d97d27e 100644 --- a/util/windows.psm1 +++ b/util/windows.psm1 @@ -78,9 +78,16 @@ function ProcessUrlFiles param ( [string]$source, [Parameter(Mandatory=$false)][string]$destination, - [Parameter(Mandatory=$false)][string]$fileExt + [Parameter(Mandatory=$false)][string]$fileExt, + [bool]$progress=$true ) + # Disable progressbar for faster download + $progressPreference = 'continue' + if (-not $progress) + { $progressPreference = 'silentlyContinue' + } + # Ensure the destination directory exists if ($destination -and (-not (Test-Path $destination))) {