By using the below code i can run batch file
Process p = Runtime.getRuntime().exec("E:/web_chat_temp/RunOpenfire/RunMe.bat");
But here how can i get pocess id of this process.
coz i need to stop in other application...
thanks
By using the below code i can run batch file
Process p = Runtime.getRuntime().exec("E:/web_chat_temp/RunOpenfire/RunMe.bat");
But here how can i get pocess id of this process.
coz i need to stop in other application...
thanks
Assuming that you running this program in windows machine & also you running the other app in windows.
you use the command
tasklist or tasklist [process name]
to get its process id.