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