Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Windows (http://www.go4expert.com/articles/windows/)
-   -   Shutdown and Restart Timer Script (http://www.go4expert.com/articles/shutdown-restart-timer-script-t6894/)

ghostomni 17Oct2007 18:47

Shutdown and Restart Timer Script
 
Shutdown and Restart Timer Script using batch file. Copy All Code On Notepad And Save As Timer.bat

Code:

@cd\
@echo off
@title Nt Shutdown / Restart Timer Script
@color 60
:ch3
goto about
goto menu
goto ch
:about
@cls
@echo.
@echo.
@echo            :: Nt The Maker Shutdown and Restart Timer Script::
@echo.
@echo                      :: Email:- neeraj.tan@gmail.com ::
:menu
@echo.
@echo.
@echo.
@echo  Press r to Restart      Restart System
@echo.
@echo  Press s to Shutdown    Shutdown System
@echo.
@echo  Press a to Abort        Abort System Shutdown/ Restart
@echo.
@echo  Press q to Quit
@echo.
@echo                          "use only small letters"
@echo.
@echo.
:ch
Set sr=
Set /p sr=    :: Enter Your Choice  ::
If "%sr%" == "r" goto ch2
If "%sr%" == "s" goto ch2
If "%sr%" == "a" goto abt
If "%sr%" == "q" goto qut
goto ch
@echo.
:ch2
@echo.
@echo.
:about
@cls
@echo.
@echo.
@echo            :: Nt The Maker Shutdown and Restart Timer Script::
@echo.
@echo                      :: Email:- neeraj.tan@gmail.com ::
@echo.
@echo    [Enter Time in Seconds like 3600=1hour, 1800=30min]
@echo    [Or Leave Blank for For 30sec Timer or 00 to immediate Shutdown]
@echo.
Set /p t= Enter Time Intervel ::
@echo.
@echo    [Enter Comment Or Leave Blank]
@echo.
Set /p c= Enter Comment      ::
@echo.
If "%sr%" == "r" goto res
If "%sr%" == "s" goto sht
@echo.
@echo.
:res
@shutdown -r -t %t% -c "%c%    {Restarting Script by Nt The Maker}"
goto qut

:sht
@shutdown -s -t %t% -c "%c%    {Turning Off Script by Nt The Maker}"
goto qut

:abt
@cls
@Shutdown -a
goto ch3

:qut
@cls
@echo Thanks For Using Script
Pause
@exit


Izaan 20Oct2007 11:28

Re: Shutdown and Restart Timer Script
 
Is that your email address. I would like to add you in my contact list


All times are GMT +5.5. The time now is 11:00.