Hi,
i need to kill or remove windows system process like cmd.exe from java code.
like removing it from end process in task mgr.
i tried below code but its not removed.
is there a better way we can do this.
killing a system process from java code will create any issues?
public static void main(String[] args) throws Exception {
String[] cmd = { "cmd.exe" };
Process p = Runtime.getRuntime().exec(cmd);
p.destroy();
}
any suggestions or ideas are really appreciated.
thanks.