kill an running application process inside windows XP
Hi,
I have the following issue where by i am trying to kill a running application that no longer is responding inside windows .
I am ssh from the my unix machine into the windows machine using a script. the script has the following :
ssh windows_machine<<EOF
for /F "tokens=2" %I in ('TASKLIST /NH /FI "WINDOWTITLE eq application"' ) DO (
SET PID=%I
ECHO %PID%
TASKKILL /F /PID %I )
TASKKILL /F /PID %PID%
EOF
can you see why sometimes the application is not been killed all the time .
the application can be launched a number of times thats why i have in the for loop.
Any ideas why it won't work ?
|