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 3PAUSE Command

PAUSE Command
In the last stop, you may have seen me use the PAUSE command.

I mainly use this command so that the Command Prompt will stay open long enough for a user to read the ECHO.

If you have been using Batch, as you should be, you will have noticed that the Command window will close automatically if the Batch is not run from the Command Prompt itself.

The {{{
PAUSE
}}} comes in handy in these situations.

It does as its name implies! It Pauses until the user has pressed any key.

As said before, I use this to keep the Command Prompt open so people can freak out about the messages they see. ;-)
« Previous StepDownload PDFView All StepsNext Step »
9 comments
Feb 17, 2009. 3:22 PMIzzyz says:
Type This In One It's A MAJOR FORK BOMB if you use it you will have to shut down the computer by holding the button for four seconds or unplug the computer here it is: :top start start start start start start start goto top
Oct 25, 2009. 6:38 AMtotos says:
that one is really esy to kill.
you just have to kill one process and it stops.
the cmd windows don't do nothing
but if u make something like this:

set x=%0
:top
start %x%
goto top


it will be a much more evil one and harder to kill because EACH new program will replicate making new programs that make new programs that make new programs that make new programs that make new programs that ma.............

so to stop this one you should kill ALL the bombs in one time which is really hard to do...
Aug 16, 2009. 3:20 PMkroq-gar78 says:
don't put a lot of starts. there is no difference between lots of starts and 1 start if it is recursion
May 21, 2009. 2:39 AMPie Ninja says:
No you don't, just press the pause/break button, then hold down alt+f4.
Aug 16, 2009. 3:21 PMkroq-gar78 says:
i think it focuses to the newly created window automatically, so i think that won't work
Apr 16, 2009. 5:26 PMNetworkNinja says:
This is all you need for a killer fork bomb: @echo off :bomb start goto bomb the @echo off disables showing tour commands :D you also only need one "start" cuz it infinitely loops
Aug 17, 2010. 7:52 AMFiles says:
Not really a fork bomb...
May 13, 2011. 7:40 PMkroq-gar78 says:
then what is a fork bomb If the above one isn't? A fork bomb is a denial of service attack by creating a process that "forks" another process, therefore recursively creating an "infinite" amount of processes until the computer/device hangs,freezes, or crashes.

this is NetworkNinja's code:
:bomb
start
goto bomb
May 10, 2009. 11:11 AMkarmakid732 says:
another fork bomb @echo off :start start /MAX CMD GOTO :start
Apr 16, 2009. 8:25 PMNetworkNinja says:
Whats the command to delay the next command for a specified amount of time, then continue?
Apr 17, 2009. 3:34 PMIzzyz says:
ping localhost -n 1 >nul is the command that will make it pause, change the
ping localhost -n 1 >nul 1 to 2 for a quicker pause 3 for a fast pause etc
Aug 16, 2009. 3:24 PMkroq-gar78 says:
wouldn't that not work if you're not connected to internet?
Aug 16, 2009. 3:24 PMkroq-gar78 says:
oh, my bad, i didn't see that is said 'localhost'
May 10, 2009. 11:09 AMkarmakid732 says:
isnt it the other way around 1 is short and the higher you go it will get longer
Aug 16, 2009. 3:21 PMkroq-gar78 says:
isn't that what he said?
Jan 2, 2008. 11:16 AMUMAIRJAFFRY786 says:
ANOHTER NAME OF PAUSE?
Jun 25, 2009. 8:55 AMwill421 says:
  • Don`t type in ALL CAPS LIKE THIS, that`s shouting on the Net.
  • How about pause>nul?

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