batch file auto reboot

Play Now

paul.obrien

LOMCN Veteran
Veteran
Aug 28, 2008
453
4
45
Im looking for a batchfile text to automatical reboot the server for me on specific days and times.

I no nothing about batch files so would love it if someone could help me out :P.
 

Azura

Mir3 Coder & Adviser
Untrusted Member
Golden Oldie
Mar 12, 2005
3,260
116
330
Here is a typical .bat to auto restart written by myself.

@echo off
cls
echo If you want to close the Application, close the Application window and type Y depending on your language followed by Enter.
echo Protecting Application from crashes...
title Application AutoStarter
:Application
echo (%time%) Application started.
start /wait Application.exe
echo (%time%) WARNING: Application closed or crashed, restarting.
goto Application

Hope it helps (Replace 'Application' with the name of the application)
 
Upvote 0

paul.obrien

LOMCN Veteran
Veteran
Aug 28, 2008
453
4
45
thanks gys but i dont think thats what im looking for.

ill try and descibe a little better.

I need something to close all the server gates at a pre determined time.
then reboot the dedi machine and the start the server gates with out having to logg in to the machine.
 
Upvote 0