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 looping text

Batch looping text
Hi, this is my instructable on how to create a text loop circuit in command prompt(batch).
If you like, please comment for more cool batch tricks!
 
Remove these adsRemove these ads by Signing Up
 

Step 1Step one

Step one
What you need:
Computer running windows 95 or later
Keyboard
Mouse
Notepad.exe
A brain
« Previous StepDownload PDFView All StepsNext Step »
46 comments
1-40 of 46next »
Dec 6, 2011. 10:23 AMDark-player says:
uhm, im not sure whether PING address -n X works
better would be
"PING -w (ms to wait per t) -n t 1.1.1.1>nul"
this would give more control
Dec 15, 2011. 12:27 PMDark-player says:
ping /? (^-^)

Further Information
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"PING" should be clear
"-w ABCD" sets the delaytime the ping waits till he gets a PONG. I think MAX is 9999 and min of 1 doesn't work (because you got a little delaytime from one command to the other)
"-n T" T is the numer how often he waits (for ABCD seconds), only change is that it is not one second anymore ('cause you've set [is that right?] it with "-w ABCD")
"1.1.1.1" should be a IP adress you cant ping (I use 1.1.1.1), so it waits the whole time of "-w ABCD" impossible is 0.0.0.0 and 255.255.255.255 ("PING.EXE" wont ping it properly)
">NUL" sends the output to *nowhere. ">CON" is default (your console, that you see)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Is that explanation ok?
(sorry for the bad English, would be nice if somebody correct it)

*NUL is a Object like LPT, LPT1, LPT2, COM etc. But NUL doesn't do anything with it. The output is deleted right away.
Mar 22, 2009. 1:45 PMArbitror says:
Script kiddie..
May 6, 2009. 1:15 PMfwjs28 says:
agreed..this stuff gets repetitive...
May 11, 2009. 6:18 PMwill421 says:
Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very repetitive!
May 12, 2009. 12:16 PMfwjs28 says:
no, more like Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very
May 27, 2009. 7:34 AMwill421 says:
Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Very Repetitive!!
Jun 11, 2009. 9:29 AMPKM says:
@echo offecho Very:aecho verygoto aecho repetitive!

Beat that :P
Jun 15, 2009. 3:54 PMwill421 says:
Um...

@echo offtitle SUPER-DUPER:POOPERecho LOOPERecho COOPERecho FUPERecho KUPERecho NOOPERecho OOPERecho TUPERgoto POOPERecho Repetitive!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Haha!
May 27, 2009. 12:16 PMfwjs28 says:
its getting repetitive....
May 23, 2009. 2:23 PMArbitror says:
I don't help people who make viruses...
May 23, 2009. 2:14 PMfwjs28 says:
uhh you mean like a forkbomb without the bomb? @echo off color 0a echo killing your computer :haha start %0 goto haha
Jun 9, 2009. 1:09 PMdla888 says:
Simpler fork Bomb :a start %0 %0|%0 goto :a I have tried crashing my windows 3.1 laptop but it just keeps going. I had it sitting there for 45 min running this fork bomb. It didn't crash. Although you can put a fork bomb on a floppy disk and load the fork bomb from the disk and after about 5 min of the fork running off the disk remove the disk and the (at least mine did) computer will require a forced reboot.
Jun 9, 2009. 1:14 PMfwjs28 says:
just use a more resource heavy program and it'll kill the computer in seconds...
Jun 10, 2009. 12:04 PMdla888 says:
By resource heavy you mean forks faster? Or uses a bigger file? Or something else?
Jun 10, 2009. 12:40 PMfwjs28 says:
both...make it evvvvil
Jun 10, 2009. 1:42 PMdla888 says:
How could you make it fork faster?
Jun 10, 2009. 4:48 PMArbitror says:
Buy a faster computer.
Jun 11, 2009. 12:55 AMdla888 says:
That would only make it more resistant to the fork bomb.
Jun 10, 2009. 5:05 PMfwjs28 says:
in theory yes...as for actual practice, maybe not as more resources mean more time to fill the ram and overload the proseccor...
Jun 10, 2009. 1:45 PMfwjs28 says:
idk...maybe add more of the start %0 like: :a start %0 start %0 start %0 start %0 goto a
Jun 11, 2009. 12:53 AMdla888 says:
Maybe :A start %0 start %0 start %0 start %0 start %0 %0|%0 %0|%0 %0|%0 %0|%0 %0|%0 goto A
Aug 4, 2009. 6:08 AMwizerd 745 says:
I did somthing like this once:


set num=1
set new=%num%%0
:start
copy "%0" "%new%"
start %0
start %new%
set /a num=%num%+1
goto start
Jun 11, 2009. 8:05 AMArbitror says:
No, %0|%0 just pretty much causes numerous bugs and errors in the program, slowing it down.
Jun 11, 2009. 6:23 PMfwjs28 says:
taking a sledge hammer to it is even faster...hammer FTW
Jun 10, 2009. 4:49 PMArbitror says:
%0:astart %0goto a
Is faster than that.
Jun 28, 2009. 6:01 AMBatchMan says:
Well, Rocket Propelled Grenade launchers work pretty well..........
Jun 28, 2009. 7:15 AMfwjs28 says:
meh....to much room for error (missfire, resiliant pc, or a miss all together)....i prefer binary explosives...
Jun 11, 2009. 12:55 AMdla888 says:
Would it be faster because it has fewer functions to perform? Also could you change the %0 to something like %9?
Jun 11, 2009. 8:08 AMArbitror says:
%0 is the path to the batch file itself. If it was located in the c: drive and saved as "hdf.bat", %0 would mean the same as "C:\hdf.bat". %1-%9 are all different. Check out this.
Jun 10, 2009. 5:04 PMfwjs28 says:
w/e...
May 23, 2009. 2:16 PMfwjs28 says:
nvm, the cant be closed bit....i would try shadow ops instructables on start a batch file on code for starting a script fullscreen, as most people freak out when they can't see the X and therefore assume their computers broken
Jul 17, 2009. 10:20 PMerikals says:
@echo off title Win32.RESeat.S REM RESeat.S means this program eats memory. echo Your computer will crash soon. :endlesstorture start %0 start %0 start %0 start %0 start %0 start %0 start %0 start %0 start %0 start %0 start %0 goto endlesstorture
Apr 22, 2009. 3:17 PMwill421 says:
Try naming this nethack.bat(a console game) and you`ll laugh at the result. @echo off cls title Error :top echo Your operaiting system is not suppored goto top
Jun 10, 2009. 12:41 PMfwjs28 says:
supported...just to letcha know...
Apr 22, 2009. 6:40 PMwill421 says:
OR... Better yet... @echo off cls title Error :top echo FATAL ERROR: echo Your operating system is not supported echo Version: ver GOTO top
Jun 15, 2009. 3:48 PMwill421 says:
And result (anyways):
Victim:Hmmm... I`m gonna install Windows. *Installs Windows*
3 hours later...
Victim: *yawn* I`m tired. I`m gonna go-*BANG* *snore* *snore* *snore*
You: *types*
2 minutes later...
Victim: I`m gonna run nethack. *types* *gasp* AHHHHHHHHHHHHHHHH!!!!!!!!!!!!!!!!!!!
You: *chuckle*
Victim: AHHHH!!!!! MY GAME!!!!!!!!!!!!!!!
You: *laughs*
Victim: *types franticly*
Computer: *beep* *beep* *beep*
Victim: *types really franticly*
Computer: *Opens 1000 error messages* *beep* *beep* *Opens 30 CMDs* *beeeeeeep*
Victim: *types super frantic*
Computer: *BEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
EEEEEEEEEEEEEE* *freezes for 10 seconds* *ding* *closes all the mess*
Victim: *wipes sweat off forehead*
Computer: *beep* *beep* *beep* *Screen freaks out for a moment*
Victim: Huh?
Computer: *zzzt* *beep* *beep* *zzzt* *BEEEEEEEEEEEEEEEEEEEEE
EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
EEEEEEEEEE* *zzzt* *BSOD comes up*
Victim: *reaches for power button*
You: *smirks*
Computer: *Screen really freaks out* *zzzt* *beep* *BOOM*
*power outage*
You and victim: Oh my...
Computer: *zzzt* *bezzzt* *catchs on fire* *KA-BOOM* *zzzt*
Jun 28, 2009. 6:02 AMBatchMan says:
@echo off cls title Error :top echo FATAL ERROR: echo Your operating system is not supported echo Version: ver echo Required: TAT Batch Subsystem GOTO top
1-40 of 46next »

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!
1
Followers
1
Author:updown789