I've started a process with following code
ProcessBuilder pb = new ProcessBuilder("cmd", "/c", "path"); try { Process p = pb.start(); } catch (IOException ex) {}
Now I need to know the process's pid that I've just started.