Introduction: SHUTDOWN -s -t 60
How to shut down a computer running Windows from the Command Prompt
by Jared E. Thomson
First off, you need to open MSDos (CMD). Type in the following:
SHUTDOWN
After typeing SHUTDOWN, add the following to the end of the SHUTDOWN Command:
| Text | Action |
| -s | Shutdown and Power off the computer |
| -c "Comment" | Add a comment |
| -t xx | Time before shutdown |
|-a |Abort |
Example:
SHUTDOWN -s -c "Ha Ha, I Shut Down your computer!!!!" -t 60
That will Turn your computer off in 60sec and display the message.
WARNING: After you start this, you can not stop it!!!! (unless you know how.....)
Step 1: Run CMD.exe
Go to Start > All Programs > Acsessories > Command Prompt
Step 2: Type Command
Type "SHUTDOWN" Then add a space. DO NOT PUSH ENTER!!!
Step 3: Special Instructions
Add the following:
-s -c "Your Text Here" -a -t 60
-s Shuts Down the computer
-c " " Adds a comment (Replace Your text here with, well... your text!)
-t Specifies the ammount of time before the Shutdown Starts (60 Seconds)
DO NOT PRESS ENTER!!!
Step 4: Finish
WARNING: YOU CAN NOT STOP THE SHUTDOWN AFTER YOU HAVE STARTED IT!!!!
EDIT: Without this: SHUTDOWN -a
ends the shutdown process.
You can press enter now!
Good Luck!
35 Comments
3 years ago
can somebody please tell me how do i set my hp laptop to automatic shutdown at 9:30 pm
Reply 1 year ago
There is a global variable called %time% which displays the hours, minutes, seconds, and thousandths of a second. I am sure there are other ways to do this, but they way that I am thinking of looks like this:
@echo off
title scheduled shutdown
:test
if %time% == 21:30:00.00 shutdown.exe -s -t 10 -c "It is 9:30"
goto test
I tested it and it seems to work. If you don't want to always open this program, you can pin it to startup by going to 'shell:startup' in and drag the file into there.
5 years ago
hi bro i want to set timer (approximately 5 mto 10 mints) when internet disconnect and when during timer if internet again connect my pc should keep on i mean when internet connect the timer auto off. please upload software or script .i hope you will do for me and peoples
7 years ago
No need to bother so much. Just use a simple program like Multi Timer PC Shutdown Timer
http://progdown.ru/multi-timer/
8 years ago on Introduction
Can some body tell me .. how to generate shortcut of button to shut down system
through folder command
Reply 7 years ago
do bat file
7 years ago
What do you type to do it to someone else computer
Reply 7 years ago
just open notepad
write:
@echo_off
pause
echo press any button
pause
-s
-t 60
then just save it as .bat file and send it to someone, then they have to open it and press any button, then it will shut down
8 years ago on Introduction
8 years ago on Introduction
@echo off
cd \
shutdown -s -c "Your Display Massage" -t 60
11 years ago on Introduction
Such noobish noob nobberish!!!!! Anyways, to really F with someone, create a shortcut with your shutdown command, and drag the shortcut into the "startup" folder in the start menu. Then the shutdown and comment will occur every-single time that the user logs in. (Don't set the timer too short or else you won't have enough time to delete the shortcut from the startup folder when your done screwing with them : ) )
12 years ago on Introduction
na no one nowswhat to do its simple go to stat ont the left hand sie of the computer scre and type in on he serch shutdown -a and the log off wil be cancelled!!!
15 years ago on Introduction
to stop it is to go into run and type "shutdown -a"
16 years ago on Introduction
K, sorry all, i have been busy (playing video games and working..... just kidding). I have been working a lot. If anyone wants help with computers stuff, electrical stuff, or anything technological, please come to my forum:
http://jthomsonmain.proboards99.com/
or email me:
jthomsonmain@gmail.com
i am sorry that i cant stay and help everyone, but i feel that i have overextended myself....
16 years ago on Introduction
what about the -f command? what will happen if they have another program, they will by the way since it's an email attachment and you need to use and internet application to retrieve it
Reply 16 years ago on Introduction
oops, wrong instructable, anyways what's the point of talking to yourself on the computer, SHUTDOWN YOUR SCHOOL IS THE BEST
16 years ago
Yes, you can abort it. Run "shutdown -a". Let's please not have an instructable for every Windows shell command, particularly when entering the command and "/?" will give you more information than you've listed above.
Reply 16 years ago on Introduction
you're right, i wanted to reply the same
Reply 16 years ago
Yeah if want to see real DOS scripting check out my guide in shutting down a school.
16 years ago
let me guess, the next intructable is going to be a knex gun made completely out of single xp shell commands......