1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Shutdown and Restart Timer Script

Discussion in 'Windows' started by ghostomni, Oct 17, 2007.

  1. ghostomni

    ghostomni New Member

    Joined:
    Jul 1, 2007
    Messages:
    31
    Likes Received:
    1
    Trophy Points:
    0
    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
     
    Last edited: Oct 20, 2007
    Scripting likes this.
  2. Izaan

    Izaan New Member

    Joined:
    Oct 16, 2007
    Messages:
    215
    Likes Received:
    2
    Trophy Points:
    0
    Is that your email address. I would like to add you in my contact list
     

Share This Page