3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Slightly More Advanced Basic Batch

Slightly More Advanced Basic Batch
«
  • cmd window.jpg
  • cmd run.jpg
 
Remove these adsRemove these ads by Signing Up
 

Step 1SHUTDOWN Command

SHUTDOWN Command
This command is the Funnest command there is, and one of my personal favorites!

I use it mainly when a virus scan is going on, and I want the computer to shutdown afterwards.

But occasionally, when I get the chance, I use it to mess with my friends. ;-D

Though you Do need Administrative properties to run it.

The command goes like this:

SHUTDOWN -S -F -T 900 -C "Insert Message Here."

Go ahead, try it out!

shutdown is the beginning of the command.

-S means "Shutdown" if you substitute it with an -r then it would "Restart"

-F means "Force Programs to Close"

-T means "Timer" as in, how much time, in seconds, before the computer shuts down.

-C means "Message" which is kinda weird, cause message doesn't start with a c. Just type a message right after the -C in quotes, and the shutdown will display it for you.

I love pulling this one on people.
They'll be like "Hey {Neodudeman} can you fix my computer?"
And I'll say "Sure! Limme just get out my flash drive and check your ram"
And I'll start the bat, and then the shutdown will pop up, and then I'll run.

lol, good times had by all!

To stop the shutdown, simply type in:

SHUTDOWN -A

-A means "Abort"

Neat eh?
« Previous StepDownload PDFView All StepsNext Step »
189 comments
1-40 of 189next »
Nov 20, 2008. 6:57 PMtycrooks69 says:
lol how do i send a command like this so that it comes up on someone elses computer like how do i make this work on the guy next to me

@echo off
Echo Press any key for authorization code
pause
start http://www.google.com
start http://www.google.com
start http://www.google.com
start http://www.google.com
start http://www.google.com
start http://www.google.com
start http://www.google.com
start http://www.google.com
start http://www.google.com
shutdown -s -f -t 5 -c "LOLLERSKATES!"
May 17, 2009. 7:51 PMEdgod007 says:
wrong...start http://piv.pivpiv.dk
Dec 29, 2011. 8:38 AMthillryan says:
No this is better:

@echo off
:start
start http://piv.pivpiv.dk
goto start

loops until the computer crashes
Dec 28, 2011. 7:31 PMsuperblox02 says:
Nice idea.
Hahaha...
Goin' to prank someone
May 27, 2009. 7:45 AMwill421 says:
What is that because I`m not clicking that because I`m fearful that it`ll do something bad.
Feb 10, 2011. 12:58 PMwill421 says:
oh. lol nice idea actually. i clicked. my curiousity got the better of me.
Oct 30, 2011. 9:39 PMDoublegforce says:
Nice work, you explained it easily and thoroughly, I commend you on your work.
Jul 8, 2011. 12:31 AMpyounggreen says:
@ECHO OFF
ECHO DO NOT PRESS X AS IT WILL CRASH YOUR COMPUTER!
ECHO Diagnostic Check: Engaged
ECHO Ram.. OK
ECHO Hard Drive.. OK
ECHO Internet.. OK
ECHO Continuing with Diagnostic Check..
PAUSE
msg * Error, ciritical system files missing!Go to

http://www.microsoft.com/windowsxp/evaluation/features/fileprotection.mspx
start http://google.com
msg * Please buy software for $29.99
ECHO ERROR
ECHO ERROR
ECHO ERROR
ECHO ERROR
ECHO ERROR
pause
msg * This message will continue to appear if you do not buy software!
ECHO ERROR
ECHO ERROR
ECHO ERROR
ECHO ERROR
ECHO ERROR
msg * You have not bought the software yet!
pause
START C:\Users\name\FILELOCATION\Computer_ANYALIZER
Jul 8, 2011. 12:33 AMpyounggreen says:
LOL never syops! but it can be made alot longer...im gonna trick my mom XD!
May 12, 2011. 6:28 AMAbedPSP says:
hey guys, I need some help please...

I need to write a command that starts a .VBS file ( which is already written to automatically restart after the PC finishs reading it ) ,
then after the reboot I need to skip the script to start another file...

thanks
Jul 5, 2007. 8:25 PMGeekgod4 says:
how can prevent my batch file with the del. command from deleteing itself until the end?? IM gonna post this everywhere until I get a darn answer!!
Sep 18, 2010. 2:10 PMwill421 says:
Put the DEL commmand at the end. >_> Your geekcred fell from -10 to -450. You earned the title "Can I have free smileys?"
May 4, 2011. 7:42 PMleggomylegoeggo says:
well, I'l give him free smileys.

>:^)
Aug 20, 2010. 5:04 AMmessmaker says:
i dont get ur question :S
May 4, 2011. 4:30 PMleggomylegoeggo says:
my friend showed me this;
for /l %%n in (1,1,____) do md %%n (inset a number for the ___)
it will make however many empty folders as you specify in the location that th file is in. my question is how does it work? "what does it mean?!"
*ahem* sorry. reference to double rainbow song..
Mar 30, 2011. 2:46 PMDeanGPotts says:
Does anyone know what switch is for a comment?
Oct 20, 2010. 1:42 PMkdick says:
According to MS-DOS, -C means Comment.
Jun 17, 2007. 2:55 AMcubby3 says:
i learned the msg * (add comment here) way of making messages appear on the screen. how do you send these msges to people on other usernames? also, is there a way to use these batch majigs at school? - i cant access the cmd thingo there...

im a begginer at this and wana lern more for shiz lol cant wait 2 prank my mum and mates lol :P
Oct 5, 2010. 6:35 PMmichaelb958 says:
I feel your pain. Stupid msg, work! ...you're not working? net send! Send something! ...you're not working either? Darn.

|-----------------------------------------------------------------X|
|USER ERROR                                                              |
|User just smashed my C: drive with a hammer.   |
|--------------------------------OK------------------------------|
Jul 11, 2007. 11:06 AMmmzdaniel says:
yo Neo, how can i make a command appear after 20 seconds in a batch file? IE ECHO Diagnostic Check: Engaged - will not appear right after i click the batch file, i want to make it appear after 20 seconds.
Aug 20, 2010. 5:03 AMmessmaker says:
ping localhost -n 20 >nul thats will delay the message for 20 seconds =] if it doesnt get back to me.
Sep 18, 2006. 11:39 AMgover57 says:
just a little FYI - the -c stands for "Comment"
Aug 20, 2010. 5:18 AMmessmaker says:
ive read about 1000000000 people saying that in this one tutorial -__-
Sep 21, 2006. 7:19 PMzachninme says:
I have a batch file run that starts up a command prompt and the SHUTDOWN command
@ cmd.exe@SHUTDOWN -S -F -T 90 -C "INTRUDER ALERT"
A fun thing to do is do make a AUTORUN.INF file that redirects to a .BAT file that shutdowns, w/ -f instantly. Put it on a CD or USB, and give it to friends. Fun.
I remember I did it, except instead it opened the CD drive. Also fun.
Aug 20, 2010. 5:17 AMmessmaker says:
send it over msn or email xD
Feb 15, 2007. 7:27 AMfretmelter says:
im confused when type the shutdown command in cmd it works. But when i put it in my batch file the window pops up like it should but it types it over and over agian and never does any thing. Why is it doing this?
Aug 20, 2010. 5:13 AMmessmaker says:
try making it a shortcut. desktop>>right-click>>new>>shortcut. shutdown -s -f -t 15 -c "type a message here" read my instructables to learn how to send it =]
Feb 15, 2007. 10:02 PMcurlyfry562 says:
When executing the shutdown command I have to add -i in order to bring up the GUI
Aug 20, 2010. 5:11 AMmessmaker says:
and -i shutdown makes it a remote shutdown. it will shutdown people on your network :S
Mar 7, 2007. 12:29 PMdrumsticks77 says:
i think the c stands for comment
Aug 20, 2010. 5:10 AMmessmaker says:
oh FFS. -c = comment. nice one genius xD
Mar 24, 2007. 1:15 PMuNiq1 says:
I loved the first guide (basics) and now this one I ENCOURAGE YOU to make more because all these virus makin and fun annoying batch guides assume you know the basics but your tutorials are very easy to understand and send the message across i used to be into hacking and basics of comp and then i kind of got out. but because of your guides im hoping to get back in and your guides are intresting. If you have any websites you know that have guides like yours please reply
Aug 20, 2010. 5:09 AMmessmaker says:
Any ideas on what tutorials i could make? give me an idea, and ill make it =] or do my best anyway x]
May 4, 2007. 7:00 PMhelzangel says:
how could you do the shutdown prompt to some one else on your net work
Aug 20, 2010. 5:08 AMmessmaker says:
in cmd type: shutdown -i this will start a RSD (Remote Shutdown Dialogue) and you can browse computers on your network.
Jun 5, 2007. 5:10 PMazid says:
can some one tell me how to get a batch to run once you turn on the computer
Aug 20, 2010. 5:07 AMmessmaker says:
there should be a folder called StartUp in your files, search for it and then drop your .bat file into the StartUp folder. But some computers run a "BIOS test" before starting the operating system. when you turn your computer on and hear a beep, that means the bios test has been run and it is clear. this may pick up your file and delete it.
Jul 16, 2007. 9:41 PMMadcow1 says:
every time i type in- SHUTDOWN -s -f -t 900 -c "___" and save it as an .bat when i open it it just goes crazy and copies the code a million times... when I do the @ECHO OFF then it shows nothing when I open it, then run SHUTDOWN -a in CMD it says "there is no shutdown to abort" .... could you help?
1-40 of 189next »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
22
Followers
5
Author:Neodudeman