title: Restart application with Kill process id
body: <p>I want to restart my application with some condition. But I want to kill the process first. So when I start it again then a new process id should be assigned. How to do this? </p>
  
  <p>I googled it but I can't the find perfect answer.</p>
  
  <p>I had written following code:</p>
  
  <pre><code>Process.Start(Application.ExecutablePath);
  Threat.Thread.Sleep(2000);
  Environment.Exit(-1);
  </code></pre>