I am creating a little project to impress my friends, and was curious on how I could slow down the text outflow on the program, using just one line.
I am having a problem (And trust me, I did my research), and was curious as to how to slow down the batch processing speed in general, without doing echo hi TIMEOUT 5>nul echo hi again, etc. But instead, only a single line at the beginning, which slows the output of the text for the whole batch script. Thanks!
The only real way to do this in the batch language would be to use the
callcommand to call a function and to work. This can be placed at the bottom of your batch document.Furthermore, Since your not real clear on your goal here & from reading the comments, I'm going to assume that from
echo hi & TIMEOUT 5>nul echo hi againyou want to display each line after 5 seconds BUT from just one line or command. This can be done easily withcall& anFORloop. In this case we can use%*to gather all"Words Line One","Words Line Two"that you wish.Combining this with simple syntax-replacement to remove the quotes and we good.
DelayedLine.bat
If your goal was to have a typewrighter effect, we can use a script by hackoo on this thread here and modify it to work with the
callin an organized matter.This script will display letter by letter and for each
call "Word" "Word"new quote a new line. All working by one line viacallLetterDelay.bat
For help on any of the commands do the following:
call /?set /?for /?if /?find /?