Close chrome from bat file

后端 未结 2 1245
有刺的猬
有刺的猬 2021-02-15 16:53

I am trying to kill chrome from bat file. Tried

TASKKILL /IM chrome.exe /F

but it doesnt close the chrome. What is the correct way to do that ?

2条回答
  •  太阳男子
    2021-02-15 17:22

    taskkill /F /IM chrome.exe /T

    or

    taskkill /F /IM chrome* /T

    {Explanation:

    taskkill (to kill the processes),

    /F (forcefully terminate the process),

    /IM (Image Name of the process to be terminated. '*' wildcard can be sure to specify all the tasks or image names)

    /T (Terminate all child of the image or process) )

提交回复
热议问题