fix cmd anführungszeichen

This commit is contained in:
duffyduck 2025-12-22 18:17:44 +01:00
parent 4f2c4f9dff
commit 363a4a8dfa
1 changed files with 4 additions and 4 deletions

View File

@ -164,9 +164,9 @@ function Install-ContextMenu {
}
if ($shellType -eq "Directory\Background\shell") {
Set-ItemProperty -Path $freigabeCmd -Name "(Default)" -Value "cmd /c powershell.exe -ExecutionPolicy Bypass -WindowStyle Hidden -File `"$freigabeScript`" -Path `""%V`"""
Set-ItemProperty -Path $freigabeCmd -Name "(Default)" -Value "cmd /c powershell.exe -ExecutionPolicy Bypass -WindowStyle Hidden -File `"$freigabeScript`" -Path `"`"%V`"`""
} else {
Set-ItemProperty -Path $freigabeCmd -Name "(Default)" -Value "cmd /c powershell.exe -ExecutionPolicy Bypass -WindowStyle Hidden -File `"$freigabeScript`" -Path `""%1`"""
Set-ItemProperty -Path $freigabeCmd -Name "(Default)" -Value "cmd /c powershell.exe -ExecutionPolicy Bypass -WindowStyle Hidden -File `"$freigabeScript`" -Path `"`"%1`"`""
}
if (-not (Test-Path $entfernenKey)) {
@ -181,9 +181,9 @@ function Install-ContextMenu {
}
if ($shellType -eq "Directory\Background\shell") {
Set-ItemProperty -Path $entfernenCmd -Name "(Default)" -Value "cmd /c powershell.exe -ExecutionPolicy Bypass -WindowStyle Hidden -File `"$entfernenScript`" -Path `""%V`"""
Set-ItemProperty -Path $entfernenCmd -Name "(Default)" -Value "cmd /c powershell.exe -ExecutionPolicy Bypass -WindowStyle Hidden -File `"$entfernenScript`" -Path `"`"%V`"`""
} else {
Set-ItemProperty -Path $entfernenCmd -Name "(Default)" -Value "cmd /c powershell.exe -ExecutionPolicy Bypass -WindowStyle Hidden -File `"$entfernenScript`" -Path `""%1`"""
Set-ItemProperty -Path $entfernenCmd -Name "(Default)" -Value "cmd /c powershell.exe -ExecutionPolicy Bypass -WindowStyle Hidden -File `"$entfernenScript`" -Path `"`"%1`"`""
}
}