Page 1 of 1

[Tutorial] Set a time for Automatic ShutDown.

PostPosted: Mon Feb 20, 2012 6:09 am
by The Cookie Monster
Note :
- In method 1,The time must be given in a 24 hour clock format. So 10 am = 10:00 and 10 pm = 22:00.
- In method 2, The maximum seconds allowed are 600 for Windows Vista.
-For fast access (so you don't have to type the commands everytime), simply type in the command in notepad, and save it on your desktop. Make sure you save it as .bat. For example, save the file as "shutdown.bat" on your desktop. Now simply double-clicking the commands will make them run automatically.


Basically, this is how to shut down at a certain time automatically. No, you do not need any software.

Method 1 [Shutdown at a certain time] :
Open CMD or Command Prompt. (Make sure you Right-Click and select 'Run as Administrator' in Windows Vista/Seven.)
Now you simply have to type in a command. So let's say you want to shut down at 10:00 am, this will be your command :
at 10:00 shutdown -s
(Remember, this is for 10 am and not 10 pm)

Method 2 [Shutdown after a certain time] :
Open CMD or Command Prompt. (Make sure you Right-Click and select 'Run as Administrator' in Windows Vista/Seven.)
Now you simply have to type in a command. Let's say you want to shutdown after 10 minutes, this will be your command :
shutdown -s -t 600

(-s for shutdown
-r for restart
-t for time)

Re: [Tutorial] Set a time for Automatic ShutDown.

PostPosted: Mon Feb 20, 2012 7:20 am
by monkeymaximus
Nice tutorial! The latter command is basically the same thing as in Linux, its interesting that MS may be(?) moving towards having similar or the same commands.