Start Process after Enviroment.Exit

My Problem: I want to add a restart function, this would be no problem, but I need to start it after I closed the programm, because there can be only one instance of the programm. How do I somehow start a process (itself) after I made Enviroment.Exit ?


The Solution was, thanks to ckuri ( :

“You obviously have some code that checks if an instance is already running, and if one is running the start of current app gets aborted. One solution for the restart issue would be to start the new process with an argument stating to skip the instance check.”

Leave a Reply

Your email address will not be published. Required fields are marked *