Create bat to finish Service

Asked

Viewed 2,046 times

1

I’m trying to create a . bat file to finish and start a service on Windows.

To do this I first finish the process then restart the service

But the command inside the batch file (.bat) does not find the process it is

taskkill /f /im httpdPHP5.exe

But if I use this command inside MS-DOS it finds the process and ends

The full command to restart the service is:

@echo off
taskkill /f /im httdPHP5.exe
net stop Apache2.4_PHP5
net start Apache2.4_PHP5

The following is an example attached imageinserir a descrição da imagem aqui

1 answer

1


Missed the p in the httpdPHP5 do . bat (is as httdPHP5)

  • Actually the p rsrs, but thank you.

  • Oops, I hit the wrong finger rs.. Fixed!

  • I was blinded oh kkk

Browser other questions tagged

You are not signed in. Login or sign up in order to post.