byedpi/dist/windows/service_restart.bat

14 lines
300 B
Batchfile
Raw Normal View History

2024-04-27 20:29:40 +00:00
@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
)
2024-04-27 20:29:40 +00:00
set svc_name="ByeDPI"
sc stop %svc_name%
2024-08-21 14:56:23 +00:00
sc start %svc_name%