我有以下代码:
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);
我希望在提取文件(unRAR.exe
提取它们)后不要关闭窗口。WaitForExit(9000)
似乎不起作用。我阅读了数十个网站,但仍然找不到任何解决方案。