Hello i have to write program which have to open a few system properties like:
Process sound = new Process();
sound.StartInfo.FileName = "mmsys.cpl";
sound.Start();
// Place 1
Process device = new Process();
device.StartInfo.FileName = "hdwwiz.cpl";
device.Start();
// Place 2
// Other Code doing sth
And that works well, but my problem is that i must on first run mmsys.cpl, wait for user check what he must to do, and after closing window run hdwwiz.cpl.
So in // Place 1
i wrote:
sound.WaitForExit();
But that dont works, because mmsys.cpl is only shortcut and run as process "explorer.exe", and hdwwiz.cpl runs as "mmc.exe", so that comand doesnt wait till closing that windows, and run both at once.
Is any way to make sth like i want ?