I'm trying to create a .bat file to terminate and start a service in Windows.
To do this I first end the process after restarting the service
But the command inside the batch file (.bat) does not find the process that is
taskkill /f /im httpdPHP5.exe
But if I use this command inside MS-DOS it finds the process and ends
The complete command to restart the service is:
@echo off
taskkill /f /im httdPHP5.exe
net stop Apache2.4_PHP5
net start Apache2.4_PHP5