I want to build my application with the function to restart itself. I found on codeproject
ProcessStartInfo Info=new ProcessStartInfo(); Info.Arguments=\"/C
This worked for me:
Process.Start(Process.GetCurrentProcess().MainModule.FileName); Application.Current.Shutdown();
Some of the other answers have neat things like waiting for a ping to give the initial application time to wind down, but if you just need something simple, this is nice.
ping