[Tool] [C#] Server Auto-Restart

Results 1 to 6 of 6
  1. #1
    Account Upgraded | Title Enabled! purpleCRAYON is offline
    MemberRank
    Mar 2009 Join Date
    249Posts

    [Tool] [C#] Server Auto-Restart



    Very simple.

    Here is a fraction of the code, it uses the same basic thing, just the milliseconds updated for each button.

    Code:
                start1:
                Process.Start(@"C:\rserv\source\start.bat");
                Thread.Sleep(600000);
                Process.Start(@"C:\rserv\source\stop.bat");
                Thread.Sleep(1000);
                goto start1;
    Stop.bat just closes cmd.exe, it's not very efficient, so make sure you only have ONE command prompt open, or else it might mess up.
    How to use:
    Code:
    1) Name the main folder "rserv".
    2) Inside of that, name the secondary folder "source".
    3) Now, find the thing that is like "serverstart" or "serverstart" etc, and name it "start" (If you have the extensions showing, name it "start.bat")
    4) Put stop.bat inside of the secondary folder "source" (I will provide you with the stop.bat)
    5) Start the appliaction "ServerRestart.exe" and choose something.
    - purpleCRAYON
    Attached Files Attached Files


  2. #2
    Apprentice llpkrules is offline
    MemberRank
    May 2009 Join Date
    9Posts

    Re: [Tool] [C#] Server Auto-Restart

    Very good and simple code there. Thanks, Keep up the good work =)

  3. #3
    Account Upgraded | Title Enabled! purpleCRAYON is offline
    MemberRank
    Mar 2009 Join Date
    249Posts

    Re: [Tool] [C#] Server Auto-Restart

    You're welcome, got any suggestions for anything else?

  4. #4
    wackyracer#1337 wackyracer is offline
    MemberRank
    Jun 2008 Join Date
    1,524Posts

    Re: [Tool] [C#] Server Auto-Restart

    Very great release. I find all of these tools useful in many ways.

  5. #5
    Proficient Member stability666 is offline
    MemberRank
    Jan 2009 Join Date
    Maine, USA.Location
    165Posts

    Re: [Tool] [C#] Server Auto-Restart

    I just realized this was here before releasing mine. Yours is better then mine tbh, but i still like mine better for obvious jealousy reasons ;). Good job mate.

  6. #6
    Account Upgraded | Title Enabled! purpleCRAYON is offline
    MemberRank
    Mar 2009 Join Date
    249Posts

    Re: [Tool] [C#] Server Auto-Restart

    Haha, thanks guys. : )



Advertisement