@echo off
rem  Oprire de urgenta a serverului WME Agenti Online.
rem  Oprirea normala: ServerAG.exe --stop  (sau nssm stop, daca e serviciu)

taskkill /f /im ServerAG*        >nul 2>&1
taskkill /f /im WMEServerAG*     >nul 2>&1

powershell -NoProfile -Command "Get-Process php -ErrorAction SilentlyContinue | Where-Object { $_.Path -like '*\WME\AgentiOnline\*' } | Stop-Process -Force" >nul 2>&1

taskkill /f /im tcpsvcs.exe      >nul 2>&1

echo Serverul a fost oprit.
