Experienced Elementalist
- Joined
- Mar 23, 2009
- Messages
- 239
- Reaction score
- 17
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
Attachments
You must be registered for see attachments list