PortValhalla/winiso/winpefs/Scripts/Startup.ps1

3 lines
215 B
PowerShell

$env:SETUP_DRIVE = (ConvertFrom-Csv ((wmic volume where "Label='$env:SETUP_LABEL'" get DriveLetter) | ForEach-Object { "$_".Trim(); })).DriveLetter;
Set-Location (Join-Path $env:SETUP_DRIVE $env:LOCAL_PROJECT_PATH)