Batch Looping Text

by updown789 in Circuits > Software

10495 Views, 5 Favorites, 0 Comments

Batch Looping Text

intro 1.jpg
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!

Step One

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

Let's Get Started

Create new text file.jpg
Rename.jpg
Rename are you sure.jpg
Edit.jpg
Notepad blank.jpg
Firstly, create a new text file by going right click, new text file
Change the name-must be the name.bat
Accept the message box
Right click and go edit.
You should see Notepad.exe open up

Creating the File

First lines.jpg
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

The Looping

text.jpg
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)

Test

Confirm open.jpg
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.

Thanks for Viewing This Instructable

Thank you.jpg
Thank you for viewing this instructable. I hope you liked it and please subscribe/comment if you would like more cool batch tricks!