To Kill a Process in Windows using Java

In Java it is easy to stop or kill a executing process. Using the Runtime and Process class, this can be acheived.

Runtime r=Runtime.getRuntime();       
String command="taskkill /f /im [application name].exe";
Process p=r.exec(command);



Comments

Popular posts from this blog

Integrating ZXing QR Code reader in iPhone / iOS applications

Multiple line of text in UIPickerView

Custom Message extension using Messages SDK - iMessage App store