@echo off echo Stopping Nginx service... tasklist /FI "IMAGENAME eq nginx.exe" | find /I /N "nginx.exe" >NUL echo Nginx is running. Stopping it now... nginx.exe -s stop