Forum Discussion

clyborg's avatar
3 years ago

How to stop the EABackgroundService after closing EA App.

I looked over so many posts and reddit about the EABackgroundService service running in the background after EA App was closed, and could not find a solution on why it was still running.

So I created this Batch file to make sure the EABackgroundService service will stop instead of running in the background.   This batch file will run the EA App application as well..   Just make sure you save the batch file on your desktop, and call it "EA App - StartStop.bat" without the quotes.   If you make a shortcut for this batch file, you can change the icon of the shortcut.    I am using the EA App icon.

EA App - StartStop.bat

@echo off
REM Create a shortcut in start menu and add this:
REM cmd /c "%USERPROFILE%\Desktop\EA App - StartStop.bat"

REM See if the EA APP is Running before we close it.
tasklist /FI "IMAGENAME eq EADesktop.EXE" 2>NUL | find /I /N "EADesktop.EXE">NUL

for /F "tokens=3 delims=: " %%H in ('sc query "EABackgroundService" ^| findstr "        STATE"') do (
      ECHO "%ERRORLEVEL%"
      ECHO "%%H"
)


if "%ERRORLEVEL%" == "0" (
  if /I "%%H" NEQ "STOPPED" (
    net stop "EABackgroundService"
    goto end
  )
)
   
:start 
%public%\Desktop\EA.lnk

:end

I hope this helps.  I am just dissapointed in EA that they just DO NOT STOP this service when you close the EA APP.

No RepliesBe the first to reply

About EA app General Discussion

Got EA app questions? Let's chat here!1,664 PostsLatest Activity: 2 hours ago