PortValhalla/scripts/Windows/Scripts/System.ps1

9 lines
232 B
PowerShell
Raw Normal View History

2024-08-05 18:07:39 +00:00
<#
.SYNOPSIS
Creates a new temporary directory.
#>
function New-TemporaryDirectory {
$path = Join-Path ([System.IO.Path]::GetTempPath()) ([System.IO.Path]::GetRandomFileName());
New-Item -ItemType Directory $path;
}