Very simple.
Here is a fraction of the code, it uses the same basic thing, just the milliseconds updated for each button.
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.Code:start1: Process.Start(@"C:\rserv\source\start.bat"); Thread.Sleep(600000); Process.Start(@"C:\rserv\source\stop.bat"); Thread.Sleep(1000); goto start1;
How to use:
- purpleCRAYONCode: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.




Reply With Quote![[Tool] [C#] Server Auto-Restart](http://ragezone.com/hyper728.png)

