title: How to kill a process that we started using exec in java {.exec("cmd /c"+command)}
body: <p>So, I have started a process in java using exec method in Runtime class. Now, how I invoked this is as follows.</p>
  
  <pre><code>Runtime r=Runtime.getRuntime(); 
  Process p=null; 
  String s="E:\\Softwares\\fiddler4setup.exe"; 
  p=r.exec("cmd /c"+s);
  </code></pre>
  
  <p>Now, when I trying to destroy the process using p.destroy() method. Fiddler4setup.exe is still running. I have been searching ways to close this for like a week. Even here, there is no particular correct answer for this sort of problem. Please kindly help me with this.</p>
  
  <p>Also, running the file directly is not working as it's displaying some 704 error I guess. Then, I saw this solution of using "cmd /c". </p>
  
  <p>Thank you.</p>