cmd /s angepasst für anführungszeichen
This commit is contained in:
@@ -165,9 +165,9 @@ function Install-ContextMenu {
|
||||
}
|
||||
|
||||
if ($shellType -eq "Directory\Background\shell") {
|
||||
Set-ItemProperty -Path $freigabeCmd -Name "(Default)" -Value "wscript.exe `"$launcherScript`" add `"%V`""
|
||||
Set-ItemProperty -Path $freigabeCmd -Name "(Default)" -Value "cmd /s /c `"wscript.exe `"$launcherScript`" add `"`"%V`"`"`""
|
||||
} else {
|
||||
Set-ItemProperty -Path $freigabeCmd -Name "(Default)" -Value "wscript.exe `"$launcherScript`" add `"%1`""
|
||||
Set-ItemProperty -Path $freigabeCmd -Name "(Default)" -Value "cmd /s /c `"wscript.exe `"$launcherScript`" add `"`"%1`"`"`""
|
||||
}
|
||||
|
||||
if (-not (Test-Path $entfernenKey)) {
|
||||
@@ -182,9 +182,9 @@ function Install-ContextMenu {
|
||||
}
|
||||
|
||||
if ($shellType -eq "Directory\Background\shell") {
|
||||
Set-ItemProperty -Path $entfernenCmd -Name "(Default)" -Value "wscript.exe `"$launcherScript`" remove `"%V`""
|
||||
Set-ItemProperty -Path $entfernenCmd -Name "(Default)" -Value "cmd /s /c `"wscript.exe `"$launcherScript`" remove `"`"%V`"`"`""
|
||||
} else {
|
||||
Set-ItemProperty -Path $entfernenCmd -Name "(Default)" -Value "wscript.exe `"$launcherScript`" remove `"%1`""
|
||||
Set-ItemProperty -Path $entfernenCmd -Name "(Default)" -Value "cmd /s /c `"wscript.exe `"$launcherScript`" remove `"`"%1`"`"`""
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user