+ 1

Console Restart

how to restart a Console Application by a code?

18th Jul 2022, 10:39 AM
Hadi Mussivand
5 Réponses
+ 2
You need to use the app name.
18th Jul 2022, 4:20 PM
JaScript
JaScript - avatar
+ 1
Application.Restart();
18th Jul 2022, 11:17 AM
JaScript
JaScript - avatar
0
Application.Restart(); doesn't work in Console.
18th Jul 2022, 11:39 AM
Hadi Mussivand
0
Where do you try it?
18th Jul 2022, 12:28 PM
JaScript
JaScript - avatar
0
in VS console app . like this. string a = console.readline (); if ( a=="restart") { Application.Restart(); } doesn't work.
18th Jul 2022, 2:02 PM
Hadi Mussivand