I need to run an external exe “embed.exe” under my WPF project,
here’s a snippet
ProcessStartInfo processInf = new ProcessStartInfo("embed.exe");
processInf.Arguments = string.Format(@"Some arguments");
processInf.WindowStyle = ProcessWindowStyle.Hidden;
Process run = Process.Start(processInf);
my problem is that it’s block my UI,
is there a way to include embed.exe using a thread or any code that won’t block the UI ?
OK,
Try to put your previous snippet inside a method, then create a new thread and initialize it to that method.
here’s how to make it
//hone code