Forum Discussion
With that batch code in the first post from WTF_DOC, you'll want to add all this code which runs the batch file as Admin. Otherwise some of those processes may not end like the EABackgroundService.exe process.
So save all this in a text editor and name it something.bat Make sure it has the .bat file extension. You may need to show file extensions from the Windows Control Panel | File Explorer Options.
@echo off
:: BatchGotAdmin
:-------------------------------------
REM --> Check for permissions
IF "%PROCESSOR_ARCHITECTURE%" EQU "amd64" (
>nul 2>&1 "%SYSTEMROOT%\SysWOW64\cacls.exe" "%SYSTEMROOT%\SysWOW64\config\system"
) ELSE (
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
)
REM --> If error flag set, we do not have admin.
if '%errorlevel%' NEQ '0' (
echo Requesting administrative privileges...
goto UACPrompt
) else ( goto gotAdmin )
:UACPrompt
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
set params= %*
echo UAC.ShellExecute "cmd.exe", "/c ""%~s0"" %params:"=""%", "", "runas", 1 >> "%temp%\getadmin.vbs"
"%temp%\getadmin.vbs"
del "%temp%\getadmin.vbs"
exit /B
:gotAdmin
pushd "%CD%"
CD /D "%~dp0"
:--------------------------------------
taskkill /IM EABackgroundService.exe /F
taskkill /IM EADesktop.exe /F
taskkill /IM EAGEP.exe /F
taskkill /IM EALocalHostSvc.exe /F
About Command & Conquer Franchise Discussion
Recent Discussions
- 2 days ago
- 5 days ago