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!
If you like, please comment for more cool batch tricks!
Step One
What you need:
Computer running windows 95 or later
Keyboard
Mouse
Notepad.exe
A brain
Computer running windows 95 or later
Keyboard
Mouse
Notepad.exe
A brain
Let's Get Started
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
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
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
@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
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)
: 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
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.
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 for viewing this instructable. I hope you liked it and please subscribe/comment if you would like more cool batch tricks!