How to Schedule a Process.Start in WPF
Posted
by Chi Chan
on Stack Overflow
See other posts from Stack Overflow
or by Chi Chan
Published on 2010-06-16T17:51:01Z
Indexed on
2010/06/16
18:02 UTC
Read the original article
Hit count: 248
I am trying to restart an application in WPF.
I tried the following:
Process.Start(Application.ExecutablePath);
Process.GetCurrentProcess().Kill();
And it doesn't work because the application is setup as a single instances application.
Then I tired this:
Process.GetCurrentProcess().Kill();
Process.Start(Application.ExecutablePath);
And it doesn't work because once we Kill the process it will not hit line 2
Is there a way to schedule a the .Start so that I don't run into issue #1.
© Stack Overflow or respective owner