Skip to content

Commit c826702

Browse files
Akiyamkatommaier123
authored andcommitted
closes #2
1 parent fd56d58 commit c826702

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Install/uninstall.bat

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
@echo off
2+
goto check_Permissions
3+
4+
:check_Permissions
5+
echo Administrative permissions required. Detecting permissions...
6+
7+
net session >nul 2>&1
8+
if %errorLevel% == 0 (
9+
echo Success: Administrative permissions confirmed.
10+
) else (
11+
echo Failure: Current permissions inadequate.
12+
)
13+
14+
pause >nul
15+
16+
taskkill /IM "XBatteryStatus.exe" /F
17+
timeout /T 1 /nobreak
18+
del "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp\XBatteryStatus.exe" /Y

0 commit comments

Comments
 (0)