From 0a33274b392f6cd19ea73036f13cb25c799adf0a Mon Sep 17 00:00:00 2001 From: duffyduck Date: Mon, 22 Dec 2025 16:17:24 +0100 Subject: [PATCH] =?UTF-8?q?extra=20script=20f=C3=BCr=20umaute?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Install-FreigabeKontextmenue.ps1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Install-FreigabeKontextmenue.ps1 b/Install-FreigabeKontextmenue.ps1 index cd4785e..b14f397 100644 --- a/Install-FreigabeKontextmenue.ps1 +++ b/Install-FreigabeKontextmenue.ps1 @@ -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 "powershell.exe -ExecutionPolicy Bypass -WindowStyle Hidden -Command `"& '$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 "powershell.exe -ExecutionPolicy Bypass -WindowStyle Hidden -Command `"& '$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 "powershell.exe -ExecutionPolicy Bypass -WindowStyle Hidden -Command `"& '$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 "powershell.exe -ExecutionPolicy Bypass -WindowStyle Hidden -Command `"& '$entfernenScript' -Path '%1'`"" } }