How-To: Auto-Restart Console App. in .NET
any ideas on how to automatically restart (restart) a console application in .NET?
I know that a forms application has something like this:
Application.Restart();
but this is not possible for the console.
Also, NOTE: The problem is that I cannot run two instances of the same application :)
+2
source to share
6 answers
You can create a launcher application that will wait a few seconds and then launch a real console application. Then, when you need an application to restart, you launch the launcher and exit.
There may be other prettier methods, but you will need to explain this part of your question in more detail: "I cannot run two instances of the same application."
0
source to share