PortValhalla/winiso/winpefs/Scripts/Startup.ps1

4 lines
209 B
PowerShell
Raw Normal View History

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