Create bat to finish Service

1

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

Follow sample image

    
asked by anonymous 23.05.2018 / 15:36

1 answer

1

p is missing on the link .bat (it's like httdPHP5 )

    
23.05.2018 / 16:00