|Thanks a lot ijak and mickliq for helping me|
i downloaded and its working properly with the pskill utiliy
i got one more problem...
The utility is killing all the instances of .exe with name i specified [means the name which i passed to the utiliy]
but i need to kill the process which is associated to my application not the other.
for that what i am doing is i am just running a batch script while closing my application but in my system there is one more application with the same name
and it also creates the background process with the same name
so when the script runs its killing all the process with that name
is there any way to kill the most recently created single process??