This week's giveaway is in the Testing forum. We're giving away four copies of TDD for a Shopping Website LiveProject and have Steven Solomon on-line! See this thread for details.
Why not just start the application from inside a loop in a batch file. Of course, you'll soon find out that restarting an application as soon as it fails is usually not a good idea.
Simply write the appropiate event handler when the application exits. Writing anything with the Windows Task Manager would render your application platform-dependant.
If a regular clown is funny, then a larger clown would be funnier. Math. Verified by this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss