I could not find help to this specific question, and I wonder if it has a solution. I have multiple instances of a program running on Windows 7. How can I kill a specific window (maybe based on the filename that is open)?
Background: I have a client application for an ETL software (SAS EG) on my desktop and routinely something goes wrong and a session freezes. But I have many sessions open at the same time, i.e. multiple instances of the program running on my desktop, each having their own session on the remote server. I want to kill just the one that freezed and continue working with the other instances. I know it's possible, I can kill a single instance from Task Manager, but it's a russian roulette since the processes can't be distinguished from one another in Task Manager afaik. Thanks a lot for any help.

TASKKILL /PID 1230 /PID 1241 /PID 1253 /T– Biswapriyo Aug 01 '17 at 13:14tasklistcommand – Probel Aug 01 '17 at 13:431.https://superuser.com/questions/1102108/writing-a-batch-file-to-copy-network-file-and-open-it-then-close-and-loop/1102120#1102120 and2.https://superuser.com/questions/1002737/how-to-use-wmic-to-kill-a-cmd-exe-instance-searching-by-its-command-line/1005056#1005056 . . . You may just need a way to store the PID for each instance and then a way to reference those as needed, etc. This should be possible – Vomit IT - Chunky Mess Style Aug 01 '17 at 14:47TASKLIST /Vdoes show the Window title. – Vomit IT - Chunky Mess Style Aug 01 '17 at 14:54