Instructables

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 1: Step one

What you need:
Computer running windows 95 or later
Keyboard
Mouse
Notepad.exe
A brain

Step 3: Creating the file

Picture of Creating the file
Title.jpg
Type the first line:

@echo off
title (can be what you like- this is what the file will be called in the title bar)
The title will look something like this

Step 4: The looping

Picture of The looping
Text and loop.jpg
Confirm changes.jpg
Write the next lines:

: a
echo (what you would like to be repeated first)
ping localhost -n (a number, how long it will wait until is shows the next line) >nul
cls (this clears the screen for the next line)
echo (what you want to be repeated after the first line)
ping localhost -n (again a number) >nul
cls
(repeat for as many lines as you want. However, leave out the line that says : a, - that is, don't put it again in the file or it wont work)
When you have all the lines you would like repeated, create this line:
goto a
(now save and exit)

Step 5: Test

Picture of Test
CMD.jpg
Command and first line.jpg
Click on the file
The command box should open up
In it will be your First line of text, and it will be called whatever your title was
The text will loop continously, with intervals of how long you set it to.

Step 6: Thanks for viewing this instructable

Picture of Thanks for viewing this instructable
Thank you for viewing this instructable. I hope you liked it and please subscribe/comment if you would like more cool batch tricks!
stormer11275 years ago
sry most prople dont have that last one
updown789 (author)  stormer11275 years ago
I no , people think that it is funny to say this is very very very etc repetitive
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!