Windows batch: killing processes

后端 未结 1 1026
余生分开走
余生分开走 2021-01-29 02:31

I have several processes running which have the same name. I want to have an option to kill them from a batch script. I need something very similar to unix shell command:

<
相关标签:
1条回答
  • 2021-01-29 03:33

    You can use taskkill.

    taskkill /im MY_PROCESS_NAME /f

    That will kill all processes under the name you specify i.e. iexplore.exe

    Type taskkill /? at a cmd prompt for all the options.

    0 讨论(0)
提交回复
热议问题