2008-10-18

Schedule shutdown or restart for Windows XP via cmd

Sometimes you may wish to schedule your PC to turn off automatically after certain amount of time. For example when you're watching a movie in the late evening and don't know if you won't fall asleep before the movie ends :)

You can schedule your PC to turn off in the following way:

Start->Run
type: "shutdown -s -t xxxx" (for shutdown)and hit Enter
type: "shutdown -r -t xxxx" (for reboot)and hit Enter
where xxxx is amount of time in seconds.

If for some reason you changed your mind and want to cancel the scheduled shut down just run command "shutdown -a" to abort.

Example:
if you would like to shut down your computer in one hour, you would use this command:
shutdown -s -t 3600

No comments:

Post a Comment