Create shortcut in Anf+hrungszeichen egesetzt damit sonderzeichnen erlaubt sind, mit hochkommas
This commit is contained in:
@@ -164,9 +164,9 @@ function Install-ContextMenu {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($shellType -eq "Directory\Background\shell") {
|
if ($shellType -eq "Directory\Background\shell") {
|
||||||
Set-ItemProperty -Path $freigabeCmd -Name "(Default)" -Value "powershell.exe -ExecutionPolicy Bypass -WindowStyle Hidden -File `"$freigabeScript`" -Path `"`"%V`"`""
|
Set-ItemProperty -Path $freigabeCmd -Name "(Default)" -Value "powershell.exe -ExecutionPolicy Bypass -WindowStyle Hidden -File `"$freigabeScript`" -Path '%V'"
|
||||||
} else {
|
} else {
|
||||||
Set-ItemProperty -Path $freigabeCmd -Name "(Default)" -Value "powershell.exe -ExecutionPolicy Bypass -WindowStyle Hidden -File `"$freigabeScript`" -Path `"`"%1`"`""
|
Set-ItemProperty -Path $freigabeCmd -Name "(Default)" -Value "powershell.exe -ExecutionPolicy Bypass -WindowStyle Hidden -File `"$freigabeScript`" -Path '%1'"
|
||||||
}
|
}
|
||||||
|
|
||||||
if (-not (Test-Path $entfernenKey)) {
|
if (-not (Test-Path $entfernenKey)) {
|
||||||
@@ -181,9 +181,9 @@ function Install-ContextMenu {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($shellType -eq "Directory\Background\shell") {
|
if ($shellType -eq "Directory\Background\shell") {
|
||||||
Set-ItemProperty -Path $entfernenCmd -Name "(Default)" -Value "powershell.exe -ExecutionPolicy Bypass -WindowStyle Hidden -File `"$entfernenScript`" -Path `"`"%V`"`""
|
Set-ItemProperty -Path $entfernenCmd -Name "(Default)" -Value "powershell.exe -ExecutionPolicy Bypass -WindowStyle Hidden -File `"$entfernenScript`" -Path '%V'"
|
||||||
} else {
|
} else {
|
||||||
Set-ItemProperty -Path $entfernenCmd -Name "(Default)" -Value "powershell.exe -ExecutionPolicy Bypass -WindowStyle Hidden -File `"$entfernenScript`" -Path `"`"%1`"`""
|
Set-ItemProperty -Path $entfernenCmd -Name "(Default)" -Value "powershell.exe -ExecutionPolicy Bypass -WindowStyle Hidden -File `"$entfernenScript`" -Path '%1'"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user