title: How to get a process id of exe running through java program
body: <p>I am running a exe through java runtime api</p>
  
  <pre><code>     Process process = runTime.exec("cmd.exe /c start abc.exe "+Id, null, new       File("D:/My"));
  </code></pre>
  
  <p>and retrieving the process id using jna like this - </p>
  
  <pre><code>    Kernel32.INSTANCE.GetProcessId((Long) f.get(process));
  </code></pre>
  
  <p>but the process id return is not of abc.exe but of cmd.exe ..... i need the process id of abc.exe . Do not know how to get that can anyone help.</p>