-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathESOLauncherKiller.py
More file actions
25 lines (18 loc) · 829 Bytes
/
ESOLauncherKiller.py
File metadata and controls
25 lines (18 loc) · 829 Bytes
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
import os
from time import sleep
while True:
foundGame = os.popen('tasklist /FI "IMAGENAME eq eso64.exe" 2>NUL | \
find /I /N "eso64.exe"').read()
foundLauncher = os.popen('tasklist /FI "IMAGENAME eq Bethesda.net_Launcher.exe" 2>NUL | \
find /I /N "Bethesda.net_Launcher.exe"').read()
if foundGame and foundLauncher:
# k = os.popen('taskkill /IM Bethesda.net_Launcher.exe').read()
os.popen('taskkill /IM Bethesda.net_Launcher.exe')
# Verify kill!
sleep(10)
foundLauncher = None
foundLauncher = os.popen('tasklist /FI "IMAGENAME eq Bethesda.net_Launcher.exe" 2>NUL | \
find /I /N "Bethesda.net_Launcher.exe"').read()
if foundLauncher:
os.popen('taskkill /F /IM Bethesda.net_Launcher.exe')
sleep(60 * 1) # Minutes.