diff --git a/service_goodbye_discord.bat b/service_goodbye_discord.bat index 40888dd..057076a 100644 --- a/service_goodbye_discord.bat +++ b/service_goodbye_discord.bat @@ -6,7 +6,7 @@ set "arg=%1" if "%arg%" == "admin" ( echo Restarted with admin rights ) else ( - powershell -Command "Start-Process 'cmd.exe' -ArgumentList '/k \"%~f0 admin\"' -Verb RunAs" + powershell -Command "Start-Process 'cmd.exe' -ArgumentList '/k \"\"%~f0\" admin\"' -Verb RunAs" exit /b ) diff --git a/service_install.bat b/service_install.bat index b24a8fa..cf93e6d 100644 --- a/service_install.bat +++ b/service_install.bat @@ -7,7 +7,7 @@ set "arg=%1" if "%arg%" == "admin" ( echo Restarted with admin rights ) else ( - powershell -Command "Start-Process 'cmd.exe' -ArgumentList '/k \"%~f0 admin\"' -Verb RunAs" + powershell -Command "Start-Process 'cmd.exe' -ArgumentList '/k \"\"%~f0\" admin\"' -Verb RunAs" exit /b ) diff --git a/service_remove.bat b/service_remove.bat index fcf1303..1be3524 100644 --- a/service_remove.bat +++ b/service_remove.bat @@ -6,7 +6,7 @@ set "arg=%1" if "%arg%" == "admin" ( echo Restarted with admin rights ) else ( - powershell -Command "Start-Process 'cmd.exe' -ArgumentList '/k \"%~f0 admin\"' -Verb RunAs" + powershell -Command "Start-Process 'cmd.exe' -ArgumentList '/k \"\"%~f0\" admin\"' -Verb RunAs" exit /b )