Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can my application restart itself? [duplicate]

How can I restart an application from within it?

like image 975
Alex Avatar asked Apr 21 '11 12:04

Alex


People also ask

What is application restart?

If your application was originally supplied command-line options when it first executed, Restart will launch the application again with the same options.

How do you restart a Java program by itself?

Strictly speaking, a Java program cannot restart itself since to do so it must kill the JVM in which it is running and then start it again, but once the JVM is no longer running (killed) then no action can be taken.

How do I restart an app in Visual Studio?

Need the application to close and restart itself. Application. Restart();


1 Answers

Application.Restart is what you are looking for I think. I used this on one project and have to say that it worked fine for me - but other people seem to have run into issues with this.

like image 158
Matt Wilko Avatar answered Oct 11 '22 20:10

Matt Wilko