A couple of suggestions:
  • Don't enter the server list every time, life is too short. Store the list in an INI file or registry key and update it when you add or remove a server.
  • KiXtart has it's own Shutdown() function that you can use to restart servers rather than using an external utility.
  • Don't forget to check that the servers go down as well as come up. One of my biggest problems is servers that should restart after patching - they start to go down but never quite get there, so they continue to respond to PING ok but the server is left in an unusable state.


I've got some code knocking around somewhere that does pretty much what you are looking for. Try to get it working yourself (it's much more fun that way) and if you get stuck post again.