How to create a timer for Shutdown of your Computer using Notepad | Schedule Shutdown in Windows


With this trick you can schedule your computer's shutdown with a Click. You can provide a time after which your computer will automatically get's shutdown. It's a very simple trick, you don't need any software for this, we will use the Window's free Text editor "Notepad" which is also a code editing program. You just have to use some Windows commands into the Notepad to create a Shutdown file. If you want to schedule your computer, for a time to get shutdown, you can do it with this trick e.g. if you want someone to use your computer for a limited time, then provide the time in the code and start or run the shutdown file, now your computer will automatically shutdown when the timer ends ☺☺☺

Create a Shutdown file

Follow the below steps to create a Shutdown file and to know how to schedule it :

 1.  Open Notepad   (click on 'Start' search for 'Notepad' and open it)

 2.  Copy and Paste one of the code from below into Notepad.

➜ Shutdown command

shutdown.exe -s

(By default, the shutdown process in Windows will be delayed by 30 seconds, i.e. if use the above code then your computer will take 30 seconds to shutdown after running the shutdown file.)

➜ You can add a Timer for the Shutdown of your Computer by using the below code.

shutdown.exe -s -t 120

- Numbers denoted in red in the above code are number of seconds to delay the shutdown. In above code it is 120 seconds i.e. 2 minute, so, it will take 2 minute to get shutdown. You can change it to whatever seconds you want.
Change the numbers in the above code to 00 to Shutdown the computer immediately, when you run the shutdown file.

➜ You can also add a message or comment in the Shutdown notice. To display your message in the shutdown notice, use the below code :

shutdown.exe -s -t 120 -c "Your Computer will shut down in 120 seconds, pack your bags now"

- The texts denoted in red in the above code is the message which will be displayed in the Shutdown Notice, you can replace it with whatever message you want.


 3.  After typing the code in the Notepad, Click on "File" and then "Save As" and Save your file with a " .bat " extension (as a Batch file) e.g. 'shutdown.bat'


 4.  Now when you run the Shutdown .bat file, you will get a shutdown notice about logging off and Shutting down. If you have added a message in the code, then it will be displayed on the Shutdown Notice.


 5.  The timer for the Shutdown process Starts, when you get the Shutdown Notice, like if you have provided 120 seconds in the code, then your computer will shutdown after 120 seconds i.e. 2 minutes.
If you are doing any work on the Computer, then Save it before the Shutdown, because Shutdown will Close all the open programs, & Shutdowns and will turn off your computer.

➥  You can use this trick to do prank with your Friends by using the method provided in the article here. Just use the shutdown .bat file instead of the file explained in that article.

 Note: Don't use the Startup trick with this Shutdown file. Because Startup trick with this file will make your computer to shutdown everytime you turn it on. If you have provided 00 seconds in the Shutdown code, then it can be disastrous. So, it's better not to do the Startup trick with Shutdown .bat file. ☺☺

Post a Comment

0 Comments