1

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?

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

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

1

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

1

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy