I am using MSVS 2008. I am writing an application in c, and would like to know what's the best way to restart an application in windows.
I looked around and someone was doing something like this, but I am not sure if that is the best way or if that even creates a whole new process.
if(command == restart)
{
printf("program exiting!\n");
Sleep(2000);
system("cls");
WinExec("my_app.exe", SW_SHOW);
exit(0);
}
Thanks