Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

i have sth.bat file which launches my java program on compuıter A.

i start this application from computer B by using "psstart \computerA "c:\sth.bat" ".

but i when it comes to kill it in the same way, im limited with the process name. Because when sth.bat is run, i see a cmd.exe and java.exe in process list.

I have to use the process name with "pskill \computerA processName". But i have more than one applications named cmd.exe and java.exe.

How can i solve this problem?

share|improve this question

migrated from stackoverflow.com Mar 31 '10 at 16:44

This question came from our site for professional and enthusiast programmers.

2 Answers 2

Look at calling psexec from sysinternals and doing a tasklist and and kill via that.

share|improve this answer

you could try the start command in your sth.bat to start your java program, this allows you to specify a window title which you can supply to the ms taskkill command for a remote kill.

tasklist /v reveals window titles

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.