I
I
Ilya bow2018-07-14 14:35:57
cmd/bat
Ilya bow, 2018-07-14 14:35:57

How to make echo letter by letter and in one line in a bat script? That is, to make it as if the computer itself writes something to the console?

Like this.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
res2001, 2018-07-14
@8889996

Here the main problem is to output a line without a carriage return.
This can be done with the following construct:

0<Nul Set /p "Wake Up Neo: "
echo.other text

Then output the text in this way letter by letter, insert a small pause between commands using timeout or ping.
For universality, you can make a procedure that would break the string passed in the parameter into characters and display it with such an effect.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question