taskkill to differentiate 2 images by path

前端 未结 5 1948
再見小時候
再見小時候 2021-01-04 01:30

How to kill a process by name and orginiated from a particular path using taskkill?

taskkill /F /IM

certainly it cant differentiate 2 process started from t

5条回答
  •  無奈伤痛
    2021-01-04 02:20

    Use the following command (it works even without powershell):

    wmic process where ExecutablePath='C:\\Dir1\\image.exe' delete
    

    NOTE: ExecutablePath is accessable for all processes only if you run wmic as administrator on Windows 8

提交回复
热议问题