mirror of
https://github.com/hufrea/byedpi.git
synced 2024-12-23 14:53:08 +00:00
16 lines
327 B
Batchfile
16 lines
327 B
Batchfile
@echo off
|
|
title ByeDPI - Restart Service
|
|
|
|
rem Run as administrator
|
|
reg query "HKU\S-1-5-19\Environment" >nul 2>&1
|
|
if not %errorlevel% equ 0 (
|
|
powershell.exe -windowstyle hidden -noprofile "Start-Process '%~dpnx0' -Verb RunAs"
|
|
exit /b 0
|
|
)
|
|
|
|
set svc_name="ByeDPI"
|
|
|
|
sc stop %svc_name%
|
|
sc start %svc_name%
|
|
|
|
call "%~dp0proxy_set.bat" |