Skip to content

Commit

Permalink
Исправно экранирование
Browse files Browse the repository at this point in the history
  • Loading branch information
Flowseal committed Nov 12, 2024
1 parent fce0da4 commit 9d3cdd4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion service_goodbye_discord.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand Down
2 changes: 1 addition & 1 deletion service_install.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand Down
2 changes: 1 addition & 1 deletion service_remove.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand Down

0 comments on commit 9d3cdd4

Please sign in to comment.