Automatically closes power-hungry apps when your laptop switches to battery power — helping extend your battery life.
When you unplug your laptop, apps like Discord or Nvidia Broadcast may continue running in the background, draining your battery. This tool sets up a Task Scheduler trigger to automatically close such apps when switching to battery mode.
-
Download the
files.zip
from Releases -
Extract the ZIP archive to any folder
-
Open search, type
Task Scheduler
, and open it -
On the right-hand panel, click “Import Task…” Then select
CloseAppsOnBattery.xml
from the folder you extracted. -
In the imported task, go to the Actions tab → Select the listed action → Click Edit
-
In the
Start in (optional)
field, paste the file directory path where you extracted the ZIP files
Click to show list
- Spotify
- Microsoft Teams
- Zoom
- OneDrive
- Discord
- Steam
- Epic Games Launcher
- EA Applications
- NVIDIA Broadcast
- Riot Client Services
Note
More apps will be added in future updates!
You can easily customize the script.
- Right-click
CloseAppsOnBattery.bat
→ Open with Notepad - Under the existing
taskkill
entries, add a new line in the format:
taskkill /IM NAMEOFAPP.exe /F
For example, to close Chrome:
taskkill /IM chrome.exe /F
Caution
Make sure you use the exact process name of the app (.exe
), or it won’t work.