View Single Post
 
Reply
Posted 2002-10-17, 02:30 PM in reply to Demosthenes's post "question about c."
Well I run bots on my computer all day when I'm not at home and the new one crashes quite a bit. I was wanting to make a program that would just restart it for me everytime it turns off. This is my script:

#include <stdio.h>
FILE *fp;

int main(void)
{
fp = fopen("mephbot.exe", "???");

if(fclose(fp))
{
fp = fopen("mephbot.exe", "???");
}

return 0;
}


I was thinking that would do it but it does absolutely nothing...doesn't even start my program. Mephbot.exe is the name of the program I did check that and where I put the question marks I have tried many differen combos. Any help as to why this is not working would be helpful...thnx
Old
Profile PM WWW Search
Demosthenes seldom sees opportunities until they cease to beDemosthenes seldom sees opportunities until they cease to beDemosthenes seldom sees opportunities until they cease to beDemosthenes seldom sees opportunities until they cease to be
 
Demosthenes