-1

I want a Star Wars text effect in a batch file even if it doesn't get smaller when the text reaches the top.

How can I make text scroll up?

@echo off
Cls
:top
Echo %random% %random% %random% %random% %random% %random%
Goto top
jonathan x
  • 141
  • 1
  • 8
  • well, that code **does** scroll, when the end of the screen is reached. If you think of "smooth scrolling" (pixelwise): no way to do that with batch (and I'm quite sure not possible in a cmd window at all). – Stephan Jul 20 '15 at 15:14

1 Answers1

1

If you first cls and then print a lot of blank lines, any new lines you print will scroll up from the bottom of the screen. Also, you can use the ping command to add a small delay to each loop. Try something like this:

@echo off
cls
for /l %%i in (1,1,100) do echo.
:top
echo %random% %random% %random% %random% %random% %random%
ping 192.0.2.2 -n 1 -w 100 >nul
goto top
Community
  • 1
  • 1
Lynn
  • 10,425
  • 43
  • 75