Do you always forget to switch
off your computer before going to bed, or just forget to look at the
clock while you're working? This article will tell you how to get your
computer to shut down at a time specified by you.
Steps
- The code
- @echo off
- :W
- if %time%==00:00:00.00 goto :X
- goto :W
- :X
- shutdown.exe /s /f /t 60 /c "Go to bed!!!!!!"
- This constantly checks the time to see if it is midnight and, if it is, it shuts down the computer with the message "Go to bed!!!!"
- Change the "Save as type" box to "All Files"
- Type "timer.bat" into file name and click "Save"
- Double click the file. A blank command prompt screen should appear.
- Leave this window open while you do your work.
-
When the time you specified in step 3 comes around, your computer should display a message for one minute, then shut down.
-
If you wish to abort the shutdown, press the Windows Key (the key with the Microsoft logo on it) + R.
- Type "shutdown -a", without quotes into the window that appears and hit Enter.
Warnings
- These steps are for Windows 7 users only. This programme may not work on other operating systems.
- Remember to leave the command prompt window open. You can minimize it if you wish.
Comments
Post a Comment