PortValhalla/winiso/winpefs/Scripts/Startup.ps1

4 lines
209 B
PowerShell

$drives = & wmic volume get "DriveLetter,Label";
$env:SETUP_DRIVE = $($($drives | Select-String -Pattern "$env:SETUP_LABEL") -split "\s+")[0];
Set-Location (Join-Path $env:SETUP_DRIVE $env:LOCAL_PROJECT_PATH)