title: Process waitForExit() doesn't work
body: <p>I have the following code:</p>
  
  <pre><code>Process p = new Process();
  p.StartInfo.FileName = Path.GetDirectoryName(Application.ExecutablePath) + "\\unRAR.exe";
  
  
  
  p.StartInfo.Arguments = @"e c:\appData.rar c:\folderek\";
  
  p.Start();
  p.WaitForExit(9000);
  </code></pre>
  
  <p>I would like the window not to close after extracting files (<code>unRAR.exe</code> extracts them). <code>WaitForExit(9000)</code> seems not to work. I read dozens of sites and still can't find any solution.</p>