I have the following 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);
I would like the window not to close after extracting files (unRAR.exe
extracts them). WaitForExit(9000)
seems not to work. I read dozens of sites and still can't find any solution.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…