|Thanks for your advice Astroraptor.|
Yes, I could use tasklist and taskkill
but the problem is how should I do it.
Here is my situation:
I am runing an application called reflection. When it runing window shows r2win.exe is runing from my tasklist.
when I auto run my script named "test" it will bring another widow up and add another r2win.exe in tasklist ( I have serveral r2win.exe runing-- I don't want to kill then all)
So I need to use specific PID to kill the one my "test" created.. How can I tell which PID is from my "test". the PID # seems to be the latest but not the biggest.
if I use taskkill /f /im r2win.exe it would kill all of my r2win.exe section
BTW, on task manager wiondow I can see it shows my "test" is runing-- buy from task list only shows r2win.exe.
Is there anyway I can kill specific PID ( I don't know which PID is belong to my "test")
Any help is appreciated.