Stop EABackgroundService automatically when closing the game

Stop EABackgroundService automatically when closing the game

1) First Make Ur Script

Make a new text document called StopEA.txt.

Open the file with Notepad or Notepad++ and paste in the following:

@echo off setlocal enabledelayedexpansion echo Input string: %1 set "INPUT=%~1" set "INPUT=!INPUT:*theme=!" set "INPUT=!INPUT:~1!" set "PROGRAM=!INPUT!.exe" echo Detected program: !PROGRAM! start "" %1 timeout /t 30 /nobreak >NUL :LOOP tasklist /FI "IMAGENAME eq %PROGRAM%" 2>NUL | find /I "%PROGRAM%" >NUL if %ERRORLEVEL%==0 ( echo %PROGRAM% is running. timeout /t 10 /nobreak >NUL goto LOOP ) else ( echo %PROGRAM% is not running. net stop EABackgroundService )

2 ) Rename Ur Script So It End In .bat!


Stop EABackgroundService automatically when closing the game image 5

Make sure to rename the script so it end with .bat instead of .txt!

3 ) Copy The Path Of The File


Stop EABackgroundService automatically when closing the game image 8

In Windows 11 you can do it this way:

4 ) Paste "<path>" %COMMAND% Into Launch Options


Stop EABackgroundService automatically when closing the game image 11
Stop EABackgroundService automatically when closing the game image 12

Right click the game click properties

And paste in the path (with quotes around it) followed by %COMMAND% like so:

"C:\Users\eshiru\Documents\Scripts\CheckEA.bat" %COMMAND%

5 ) Launch The Game 😎


Stop EABackgroundService automatically when closing the game image 17

When you launch the game it will open up a terminal window where the script runs

It'll look like this! It will automatically close after you close the game

Here is how it works if you care:

First it detects which Battlefield game is launched by parsing input

Then it waits 30 seconds to make sure the game has started

Then it checks whether the game is running every 10 seconds

If it sees the game is no longer running, it closes the EABackgroundService!

Source: https://steamcommunity.com/sharedfiles/filedetails/?id=3383926859					

More Battlefield 2042 guilds