cmd /s angepasst für anführungszeichen
This commit is contained in:
parent
dbee26db5f
commit
3739c3eec1
|
|
@ -165,9 +165,9 @@ function Install-ContextMenu {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($shellType -eq "Directory\Background\shell") {
|
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 {
|
} 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)) {
|
if (-not (Test-Path $entfernenKey)) {
|
||||||
|
|
@ -182,9 +182,9 @@ function Install-ContextMenu {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($shellType -eq "Directory\Background\shell") {
|
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 {
|
} 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`"`"`""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue