diff --git a/setupTmp.ps1 b/setupTmp.ps1 index 4d5c18a..97c0f04 100644 --- a/setupTmp.ps1 +++ b/setupTmp.ps1 @@ -1,10 +1,14 @@ -$tmpPath = Join-Path $env:LOCALAPPDATA "Temp" +$tmpPath = Join-Path $env:LOCALAPPDATA "Temp\Script-setup" function DownloadFiles { param ( [string] $Type ) + if (-not (Test-Path -Path $tmpPath -PathType Container)) { + New-Item -Path $tmpPath -ItemType Directory + } + switch ($Type) { "Labo" { $filesToDownload = @(