Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi,
I have a batch file for msdos. I'd like write a text like "welcome to my computer" but like a typewriter, where every character is typed at an interval.
How can i do it?
Thanks in advance...
Sarpedon

You will need a program that will display the text one character at a time with a delay between each.

Its not too hard, its pretty 'basic' actually.
This should bring the text on onto the screen one letter at a time:
CLS
welcome$ = "Welcome to my computer!"
N = LEN(welcome$)
FOR x = 1 TO N
PRINT MID$(welcome$, x, 1);
t = TIMER
DO: LOOP WHILE TIMER - t < .2
NEXT x
END
All you have to do is download BASIC (pretty much any version, I think, though best bet would probably be a later version of QuickBasic so that you can easily turn it into an exec) and insert that code. Then, if you want it to be executable as a stand alone thing like a batch file, you just have to convert the .BAS to an .exe (of course dont just rename it but rather you have to truly convert it.)Good luck,
LarryPS- It would probably make more sense for this question to be asked in a 'Prgramming' forum. You'd probably get more experienced answers.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |