How can I shut down the PC after specified amount of time?
How would you go about turning you computer after a specified amount of time?
I listen music before I go to sleep and would like to be able to shutdown my computer after a specified amount of time. After ½ an hour say.
It would be cool if you could connect a desktop shortcut to a task in scheduler so you click the shortcut and ½ an hour later it shuts down.
The original recommendation - TimeComX, is now only found on shared hosting sites and has been discontinued.
Via Lifehacker, this seems to be a worthy alternative (no personal experience):
Switch Off by AiryTec
Several features of note:
- Schedule shutdowns by CPU usage levels, time, or remotely
- Power saving calculator
- Portable use (no install required - some note this version may not work on x64)
(image via developer)
Create a batch file, and put this code in it after the @echo off
line:
shutdown -s -t 1800
The computer will shutdown 30 minutes (1800 seconds) after running the batch file.
To cancel a shutdown initiated by that batch file, you can go to Start → Run and type:
shutdown -a
Or put that in its own separate batch file, then run it to cancel a shutdown.
Here are simple steps to shutdown your computer after a specified time without any application!:
- Open the Run window (Windows Key+R) or (Start / All Programs / Accessories / Run).
- Key
shutdown -s -t 1800
:
[1800
(can be changed) is the number of seconds after which the computer will turn off.]
- Click on OK and your computer will turn off after the specified time (here 30 minutes).
You can change -s
for alternatives as below:
options effect -l to log off -r to reboot