Skip to content

Instantly share code, notes, and snippets.

@h3xxx
Created April 8, 2024 13:19
Show Gist options
  • Save h3xxx/27231c2ed7a4904293ca9e3383157f27 to your computer and use it in GitHub Desktop.
Save h3xxx/27231c2ed7a4904293ca9e3383157f27 to your computer and use it in GitHub Desktop.
Windows batch file to kill all unnecessary background apps (fell free to updarte the list) to release memory before starting any game.
@echo off
setlocal
REM Declare a list of process names
set processes=Slack.exe EpicGamesLauncher.exe upc.exe Discord.exe Skype.exe Signal.exe jetbrains-toolbox.exe Battle.net.exe GalaxyClient.exe "Docker Desktop.exe" "Roland Cloud Manager.exe" "Creative Cloud UI Helper.exe"
REM Iterate over the list and stop each process
for %%p in (%processes%) do (
echo Stopping process: %%p
taskkill /IM %%p /F
)
endlocal
echo Now you can start your favourite game, enjoy :D
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment