Page 1 of 1

Remote Rebooting of a Program

Posted: Sun Mar 07, 2004 3:58 pm
by Zorth
Hey,

Is there a function out there which would allow you to 1. Shut down a program, and 2. Start up a program? I basically need this to allow people running a game I am hosting to reboot the program in case it crashes. I had little luck finding such a thing over the internet. For Windows BTW.

Thanks.

Posted: Sun Mar 07, 2004 4:40 pm
by AVATAr
try exec() or similar.. look in the manual

Posted: Sun Mar 07, 2004 5:38 pm
by Zorth
system("pskill <programname>"); works for shutting it down. Pskill kills processes.

But starting it up, it seems like it runs if I do: system("\folder\file.exe");
it even shows up when I check Task Messenger, but it never goes through, and the program never shows up on the Taskbar or anywhere else.