If you start it with a Windows .bat file, do something like this: Code: :begin *** put whatever you need to run the program here *** timeout 5 echo resuming server... goto begin The 'timeout' allows you to hit ctrl-c to abort the restart.