mirror of
https://github.com/Flowseal/zapret-discord-youtube.git
synced 2026-11-01 04:26:58 +03:00
Updates checker and cmd not terminating after service finish
This commit is contained in:
1 parent
5befdc2ac5
commit
fce0da4d0e
14 files changed
+124
-23
No files matched your search
+2
-4
@@ -4,9 +4,9 @@ chcp 65001 >nul
|
||||
|
||||
set "arg=%1"
|
||||
if "%arg%" == "admin" (
|
||||
echo Скрипт запущен с правами администратора
|
||||
echo Restarted with admin rights
|
||||
) else (
|
||||
powershell -Command "Start-Process -FilePath '%~f0' -ArgumentList 'admin' -Verb RunAs"
|
||||
powershell -Command "Start-Process 'cmd.exe' -ArgumentList '/k \"%~f0 admin\"' -Verb RunAs"
|
||||
exit /b
|
||||
)
|
||||
|
||||
@@ -19,5 +19,3 @@ net stop "WinDivert"
|
||||
sc delete "WinDivert"
|
||||
net stop "WinDivert14"
|
||||
sc delete "WinDivert14"
|
||||
|
||||
pause
|
||||
Reference in new issue
Block a user