Skip to content

Commit b9015aa

Browse files
christophvwFlickdm
authored andcommitted
Make2023BootableMedia.ps1 handle spaces in ISOPath
Make2023BootableMedia.ps1 handle spaces in ISOPath
1 parent 2f002cb commit b9015aa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/windows/Make2023BootableMedia.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ function Create-ISOMedia {
722722
# Generate a timestamp string in the following format: mm/dd/yyyy,hh:mm:ss
723723
$timestamp = Get-Date -Format "MM/dd/yyyy,HH:mm:ss"
724724

725-
$runCommand = "-l$global:ISO_Lable -t$timestamp -bootdata:2#p0,e,b$global:Temp_Media_To_Update_Path\boot\etfsboot.com#pEF,e,b$global:Temp_Media_To_Update_Path\efi\microsoft\boot\efisys_ex.bin -u2 -udfver102 -o $global:Temp_Media_To_Update_Path $ISOPath"
725+
$runCommand = "-l$global:ISO_Lable -t$timestamp -bootdata:2#p0,e,b$global:Temp_Media_To_Update_Path\boot\etfsboot.com#pEF,e,b$global:Temp_Media_To_Update_Path\efi\microsoft\boot\efisys_ex.bin -u2 -udfver102 -o $global:Temp_Media_To_Update_Path `"$($ISOPath)`""
726726

727727
Write-Dbg-Host "Running: $global:oscdimg_exe $runCommand"
728728
try {
@@ -886,4 +886,4 @@ switch ($TargetType) {
886886
}
887887

888888
Execute-Cleanup
889-
exit
889+
exit

0 commit comments

Comments
 (0)