Wednesday, May 18, 2016

How to Crte timer shutdown

Crte timer shut down
1. open notepad2. paste following commands in notepad

@echo off:CONFIRM
echo Are you sure to shutdown this computer? (Y/N)
set/p "cho=>"
if %cho%==Y goto shutd
if %cho%==y goto shutd
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
Echo enter the time (in seconds)
set/p "time=>"
shutdown -s -t %time% -c "You are about to shutdown(you type your own message here)"

3. save it with .bat extension4. run that batch file and enter your time (time must be in seconds)

No comments:

Post a Comment