Hello,
I am new to this forum and still quite a beginner in C.
My Problem:
I am working on a console program in C.
OS: Windows XP SP3, with Dev-C++ and MinGW.
At a specific point it is necessary to restart the program.
What I have already tried:
1 2 3 4
|
[...]
system("Program.exe");
exit(0);
[...]
|
But this method relies on the fact, that the programs name is the one specified in the source code.
So if someone wants to rename it afterwards, it wouldn't work anymore.
Also, have I searched the web. But everything I get is that one should use a while or do...while loop.
I don't want to solve this Problem with loops, I want a full restart of the program.
Thanks in advance for your replies.
Greez,