How to kill a task based on the path of the executable?
The usage of taskkill /F /IM "app.exe"
doesn't work in this case because there are other programs running that have the same image/process/file name, but are totally different executables. The paths are different and the .exe files with same file name are different, too.
Something like "taskkill /F /IM "C:\path\to\exe\app.exe"
would be ideal.