I have an app that writes a series of text files to a folder on the user's machine. It then prompts them if they would like to open the folder to view all the files. I use System.Diagnostics.Process.Start() to do this and it works well. However, if there is already a window with that folder open, I would just like to reuse that window instead of opening another one. Helps keep things tidy.
Any ideas?
Update: I tried this:
if (MessageBox.Show("Compiled! Open folder?", "Compile Done", MessageBoxButtons.YesNo) == System.Windows.Forms.DialogResult.Yes) { ProcessStartInfo Info = new ProcessStartInfo("explorer", Path); Info.UseShellExecute = false; Process.Start(Info); } But it still opens a new window. I also tried setting UseShellExecute to true and I get the same result of a new window opening up.