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

Step 2@ECHO OFF/ON Command

@ECHO OFF/ON Command
The ECHO OFF/ON Command.

This command will either turn ON, or OFF the command you put in a batch file from showing itself.

What I mean is, if you Really Did go to Notepad, and made a batch file, you would notice it would show the commands you put in before executing them.

I.E.

If you typed "shutdown -s -f -t 900 -c "Insert Message Here."" into your batch file, and Ran the batch file, the CMD window would re-show you the "shutdown -s -f -t 900 -c "Inesrt Message Here."" and would probably give it away if you were trying to trick a friend.

By typing in
@ECHO OFF

Before the shutdown command, it would not show "shutdown -s -f -t 900 "Insert Message Here."" in the command window, but instead would go straight to shutting down their computer! Yay!

The @ symbol before the ECHO command means that the ECHO command will stay throughout the whole batch file unless turned on again. Without the @, it will only apply to the command directly after it.

ECHO can also be used to relay a message aswell

I.E.

ECHO Your computer is working fine.

Will have the Command window say: "Your computer is working fine."
Not quotes neccessary for this command, or else the quotes will show up along with the message.

This can be used to disguise your shutdown file, and make it seem like it is fine, as in this command below:
@ECHO OFFECHO Diagnostic Check: EngagedECHO Ram.. OKECHO Hard Drive.. OKECHO Internet.. OKECHO Continuing with Diagnostic Check..PAUSESHUTDOWN -S -F -T 900 -C "ERROR"ECHO ERRORECHO ERRORECHO ERRORECHO ERRORECHO ERRORPAUSE

Will scare the crap out of any un-tech-savy person!
« Previous StepDownload PDFView All StepsNext Step »
30 comments
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.
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 16, 2007. 1:33 PMtanman37 says:
@ECHO OFF
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://www.youtube.com/profile?user=tanman37
msg * WATCH MY CRAPPY VIDEOS OR SUFFER YOUR SYSTEM FILES TO BE DELETED!!!
ECHO ERROR
ECHO ERROR
ECHO ERROR
ECHO ERROR
ECHO ERROR
pause

is that good for like, my 3rd batch, im only making them for pure annoyance of others, i also got one more i wanna show you...

@echo off
shutdown -s
pause
shutdown -a
msg * tricked you!! haha
msg * Mabye I'll do it again....
echo.
START c:\windows\NOTEPAD.EXE
START c:\windows\NOTEPAD.EXE
START c:\windows\NOTEPAD.EXE
START c:\windows\NOTEPAD.EXE
START c:\windows\NOTEPAD.EXE
START c:\windows\NOTEPAD.EXE
START c:\windows\NOTEPAD.EXE
START c:\windows\NOTEPAD.EXE
START c:\windows\NOTEPAD.EXE
START c:\windows\NOTEPAD.EXE
START c:\windows\NOTEPAD.EXE
START c:\windows\NOTEPAD.EXE
msg * Like your note pad??
echo.
msg * I could do it again at any time
pause
msg * So, do you like this?, I mean the annoyances.
START c:\windows\NOTEPAD.EXE
START c:\windows\NOTEPAD.EXE
START c:\windows\NOTEPAD.EXE
msg * Mabye I'll toss in a auto shutdown and make it go to your startup folder.
START c:\windows\NOTEPAD.EXE
START c:\windows\NOTEPAD.EXE
START c:\windows\NOTEPAD.EXE
msg * You may want to exit this in the next few seconds before its finished running your hard drive formatting.
START c:\windows\NOTEPAD.EXE
START c:\windows\NOTEPAD.EXE
START c:\windows\NOTEPAD.EXE
msg * Which will erase everything.
START c:\windows\NOTEPAD.EXE
START c:\windows\NOTEPAD.EXE
START c:\windows\NOTEPAD.EXE
msg * oops, too late, its started the re-formatting.
START c:\windows\NOTEPAD.EXE
START c:\windows\NOTEPAD.EXE
START c:\windows\NOTEPAD.EXE
msg * You too late now.
START c:\windows\NOTEPAD.EXE
START c:\windows\NOTEPAD.EXE
START c:\windows\NOTEPAD.EXE
msg * Well, there goes your system files and most saved data.
START c:\windows\NOTEPAD.EXE
START c:\windows\NOTEPAD.EXE
START c:\windows\NOTEPAD.EXE
msg * Man I do like notepad, mabye I'll toss In a huge memory leak to slow down your computer like crazy.

are those 2 good?
Aug 20, 2010. 4:58 AMmessmaker says:
well, simple as all hell. your using the same procedure over and over again, and u just have to type: start notepad and it will start notpad.
Jul 19, 2007. 7:20 PMtanman37 says:
Oh, I didn't notice that, I'll fix that , like change it to

@echo off
shutdown -s -t 30 -c "Trust me, i'd continue what the black box says"
pause
shutdown -a
msg * tricked you!! haha
msg * Mabye I'll do it again....
Jul 19, 2007. 7:23 PMtanman37 says:
Oh, i gotta totally remake this, i made it like, instantly after finding out about batches XD, i'll post the finished project
Jan 21, 2008. 5:36 AMlewis36 says:
i have vista and shutdown -s ... doesnt work in batch, it works however in normal cmd
Aug 20, 2010. 4:41 AMmessmaker says:
run it through shortcut.
Feb 2, 2008. 3:48 PMDELETED_simkinggold says:
(removed by author or community request)
Feb 10, 2011. 12:56 PMwill421 says:
One of teh PCs at school run 98. I'M SURE THAT'S NOT A SECURITY PROBLEM!
Dec 22, 2007. 9:26 PMTalkShowOnMute says:
is there an easy way to make a loop that wil repeat infinitely like an infinite echo... go to or start action? Also how to make a delay within commands...say I want to start a webpage and then have a message pop up 5 seconds later or something similar.
Aug 20, 2010. 4:18 AMmessmaker says:
@echo off :A echo lol, im deleting ur stuff over and over again because its funnier than deleting it once del *.* goto :A this will display the message then delete all your files, then do it again xD
May 10, 2009. 11:06 AMkarmakid732 says:
yeah before you type in the first echo type in :start then after pause type in GOTO :start it should infinitely loop
May 10, 2009. 11:07 AMkarmakid732 says:
then again it might not because of it shutting down
Aug 16, 2009. 3:13 PMkroq-gar78 says:
...i think you're thinking about fork bomb, denial of service attack on RAM, causes too many programs to open
Mar 7, 2009. 6:06 PMFreeper3 says:
Yepp exsemple

@echo off
Www.google.no
Ping localhost -n 5 >nul
Msg * this is the textbox

Save it as name.bat
Mar 7, 2009. 6:07 PMFreeper3 says:
Ops sorry about google.no
Dec 30, 2007. 6:50 PMcrazypyro says:
to loop commands add a colon, the and then any text like this : :bacon (put your commands here) goto bacon
Dec 30, 2007. 7:45 PMTalkShowOnMute says:
mmmm...bacon. Thanks. :)
Jun 24, 2009. 9:06 PMwill421 says:
:LOTS_OF_CAKE! (put your commands here) goto LOTS_OF_CAKE!
Aug 16, 2009. 3:14 PMkroq-gar78 says:
...i don't think the '!' will work.
Feb 10, 2011. 12:57 PMwill421 says:
Then what about brownies instead? *trollface/coolface*
Jul 9, 2010. 9:56 PMMrBlok says:
I think I'm understanding this and I have a script but I don't want to screw up my computer, I googled a command to wait and what I found was PING 1.1.1.1 -n 1 -w (amount of time in milliseconds) >NUL Apparently It looks up a nonexistent IP and tells it to keep searching for a certain number of milliseconds... If anyone has a better command that makes a script wait for a certain amount of time please tell me anyways, here's the script so far... Sorry it's long @ECHO OFF msg * Unknown System Malfunction, error code 18436 PAUSE ECHO Windows Xp: Standard diagnostics test ECHO WARNING: Failure to Run will result in Corruption and Data loss PAUSE  ECHO Checking: ECHO RAM ... PING 1.1.1.1 -n 1 -w 500 >NUL ECHO OK! PING 1.1.1.1 -n 1 -w 250 >NUL ECHO Local Disk C:\ ... PING 1.1.1.1 -n 1 -w 500 >NUL ECHO OK! PING 1.1.1.1 -n 1 -w 250 >NUL ECHO Recovery D:\ ... PING 1.1.1.1 -n 1 -w 2000 >NUL ECHO SYSTEM MALFUNCTION SHUTDOWN -S -F -T 10 ECHO CRITICAL FAILURE PING 1.1.1.1 -n 1 -w 1000 >NUL :lol msg * FATAL ERROR goto :lol
Feb 26, 2010. 7:18 PMmessmaker says:
hmmm...

well to do that you would have to loop it, such as.

@echo off
:A
start
www.website.com
msg * Annoying much?
goto :A

this means it will read ":A" at the start as a checkpoint.
it will start website.com.
display "annoying much?" as a message.
go back to :A.

AND START IT ALL OVER AGAIN!
Dec 22, 2007. 11:22 AMTalkShowOnMute says:
yeah my first crack at this was to make one to annoy co workers..it was something like...
@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!"

no one likes me anymore ;(
Sep 4, 2007. 6:10 PMLonewolf7756 says:
yea after all that throw in a DEL "C:\WINDOWS" deletes the software (windows 95,98,2000,xp, etc) they wont be able to turn their comp back on or just scare'em like "@echo off echo Welcome to Your Free Scan echo press ENTER to continue pause >nul echo ERROR echo ERROR ping localhost -n 2 >nul Error DELETING DATA ping localhost -n 2 >nul Dir /s "C:\WINDOWS" ok for those who dont know ping localhost -n 2 >nul delays the next message however many second you put where the 2 is without showing them pause >nul does the "press any key to continue" without showing the "press any key to continue" so you can substitute whatever you want there dir /s scans whatever you put after it like "C:\WINDOWS" make sure you put it in quotes it just scans it and it looks like it is deleting files try it out
Jul 8, 2007. 5:41 PMMintell says:
If you want to show a message just type
msg * (your message here).
Other than that pretty good.
Sep 18, 2006. 8:45 AMOuch says:
No, no no, your @ explanation is wrong. Adding @ to the beginning of a line prevents that line from being displayed. If you don't add @, you would get: C:\Documents and Settings\{Neodudeman}> echo off Diagnostic Check: Engaged ... Because echo off doesn't apply to itself.

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