▲ 2
C#- How can i restart a console application?
The user can write commands and that change the color of the font (for example: ConsoleColor.Green) and i added a restart command for restart the program, but the console doesnt clear and the font still on the changed color. I used like this. What else can i do for a full reset?
Process.Start(currentApplication);
//currentApplication is a variable to the program's location.
Environment.Exit(0);
u/Blamar99 — 1 day ago