Open explorer window and wait for it to close
问题 I have a program that is opening an explorer window to a certain folder but i want to perform an action right after the explorer window is closed, but if I use the following code: Process proc = Process.Start("explorer.exe", "D:\\"); proc.WaitForExit(); It is opening the explorer window as desired but the WaitForExit command has no effect and it just goes right past it. Is there a different way of opening the explorer window that will be able to let me know when it is closed by the user? 回答1: