Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions dev/launch.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,13 @@ function New-TemporaryPath {

Write-Host "Creating new temporary path: $Prefix"

$temp = [System.IO.Path]::GetTempPath()

# Remove Previous Temporary Paths
Remove-Item -Path "$env:Temp\$Prefix*" -Force -Recurse -ErrorAction SilentlyContinue
Remove-Item -Path "$temp\$Prefix*" -Force -Recurse -ErrorAction SilentlyContinue

# Create New Temporary Path
$item = New-Item -Path $env:TEMP -Name "$($Prefix)_$(Get-Random)" -ItemType Directory
$item = New-Item -Path $temp -Name "$($Prefix)_$(Get-Random)" -ItemType Directory
$item.FullName
}

Expand Down