mirror of
https://github.com/rbalsleyMSFT/FFU.git
synced 2026-06-13 18:07:20 -06:00
Fix xcopy command to handle PPKG filenames with spaces
Adds proper quoting around file paths in the xcopy invocation to support PPKG filenames containing spaces. Without quoted paths, xcopy fails when filenames include whitespace characters.
This commit is contained in:
@@ -1464,7 +1464,8 @@ If ($PPKGFileToInstall) {
|
||||
}
|
||||
WriteLog "Copying $PPKGFileToInstall to $USBDrive"
|
||||
Write-Host "Copying $PPKGFileToInstall to $USBDrive"
|
||||
Invoke-process xcopy.exe "$PPKGFileToInstall $USBDrive"
|
||||
# Quote paths to handle PPKG filenames with spaces
|
||||
Invoke-process xcopy.exe """$PPKGFileToInstall"" ""$USBDrive"""
|
||||
WriteLog "Copying $PPKGFileToInstall to $USBDrive succeeded"
|
||||
Write-Host "Copying $PPKGFileToInstall to $USBDrive succeeded"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user