1.

Solve : kill a certain process?

Answer»

I have 2 batch scripts and i need when run ONE of them, that it to kill the other one that can't be otherwise closed.
I tried pskill.exe from http://www.microsoft.com/technet/sysinternals/ProcessesAndThreads/PsTools.mspx

pskill cmd

and the problem is that it closes both BATCHES as they have same name: cmd
How can i write the second batch to GET the PID1 of the first batch and close it by

pskill PID1

Can i assign my own Process ID to a process?
Is it any other way to kill that process?one idea is to SET a window TITLE when you run your batch using title...then you can use tasklist/tlist to find the process with that windows title.taskkill /F /IM blahblah.batThanks very much,
i don't know why i was not notified, i'll check that.



Discussion

No Comment Found