-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain-service.bat
70 lines (60 loc) · 2.68 KB
/
main-service.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
@echo off
:preventnotgettingkilled
title mwtonthe_top
:createpath
mkdir "%appdata%\dopamine_service"
cls
:hide
if "%1"=="hide" goto admincheck
start mshta vbscript:createobject("wscript.shell").run("""%~0"" hide",0)(window.close)&&exit
:admincheck
net session >nul 2>&1
if %errorlevel% neq 0 (
PowerShell -Command "Start-Process '%~dpnx0' -Verb RunAs"
exit /b
)
:checklanguage
ver|find "°æ±¾" >nul&&set ver="chinese"||set ver="notchinese"
if %ver%=="notchinese" goto languagecheckfailed
:requirefilescheck
if not exist "%systemdrive%\Windows\System32\PING.EXE" goto requirecheckfilesfailed
if not exist "%systemdrive%\Windows\System32\taskkill.exe" goto requirecheckfilesfailed
if not exist "%systemdrive%\Windows\System32\cmd.exe goto" requirecheckfilesfailed
:statecheck
if exist "%appdata%\dopamine_service\state.dp" goto judgeexistence
start "" "%appdata%\Dopamine\state-display.bat"
goto mainservice
:judgeexistence
del /f /s /q "%appdata%\dopamine_service\state.dp"
ping 127.0.0.1 -n 2 >nul
if exist "%appdata%\dopamine_service\state.dp" clip > "%appdata%\dopamine_service\turnoff.dp"
start "" "%appdata%\Dopamine\state-display.bat"
:mainservice
taskkill /f /fi "imagename eq cmd.exe" /fi "windowtitle eq ¹ÜÀíÔ±: Dopamine Service stopped."
:loop
if not exist "%appdata%\dopamine_service\state.dp" clip > "%appdata%\dopamine_service\state.dp"
taskkill /f /im SeewoCore.exe
if not exist "%appdata%\dopamine_service\state.dp" clip > "%appdata%\dopamine_service\state.dp"
taskkill /f /im SeewoAbility.exe
if not exist "%appdata%\dopamine_service\state.dp" clip > "%appdata%\dopamine_service\state.dp"
taskkill /f /im EasiAgent.exe
if not exist "%appdata%\dopamine_service\state.dp" clip > "%appdata%\dopamine_service\state.dp"
taskkill /f /im Easiupdate3Protect.exe
if not exist "%appdata%\dopamine_service\state.dp" clip > "%appdata%\dopamine_service\state.dp"
taskkill /f /im Easiupdate3.exe
if not exist "%appdata%\dopamine_service\state.dp" clip > "%appdata%\dopamine_service\state.dp"
taskkill /f /im SeewoServiceAssistant.exe
if not exist "%appdata%\dopamine_service\state.dp" clip > "%appdata%\dopamine_service\state.dp"
taskkill /f /im SeewoHugoLauncher.exe
if not exist "%appdata%\dopamine_service\state.dp" clip > "%appdata%\dopamine_service\state.dp"
taskkill /f /im SeewoFreezeUpdateAssist.exe
if not exist "%appdata%\dopamine_service\state.dp" clip > "%appdata%\dopamine_service\state.dp"
goto loop
:requirecheckfilesfailed
clip > "%appdata%\dopamine_service\nofiles.dp"
start "" "%appdata%\Dopamine\state-display.bat"
exit
:languagecheckfailed
clip > "%appdata%\dopamine_service\language.dp"
start "" "%appdata%\Dopamine\state-display.bat"
exit