I am launching multiple files from a foreach with this code and it works fine unless the extension isn't associated with any software.
Process proc = new Process();
proc.StartInfo.FileName = filename;
proc.StartInfo.UseShellExecute = true;
proc.Start();
In this case Windows will display the "How do you want to open this file?" dialog for all the files but when I select a software for the first file, all the other dialogs disappear with the first one. So I am not able to open any other file.
There is any way to make C# waiting until the user select a software which I guess would be when the "How do you want to open this file" dialog will be closed?