Please Help -- Endless Color Wave(No example)

March 6, 2012 at 16:55:16
Specs: Windows 7, 4gb
I have no idea how I would do this, but would it be possible to create a batch file that would display an endless color wave of some sort, that went back and forth or up and down every line having a different color and being 1 character shorter than the previous/next. An example would be nice but is not necessary as long as a good description is posted on how I would do this(I'm a noob at batch files still, but I'm getting there.)

See More: Please Help -- Endless Color Wave(No example)

Report •


#1
March 27, 2012 at 14:31:33
You could probably create a wave of characters, however it might be difficult to do the rest...
maybe this code?

@echo off
SETLOCAL EnableDelayedExpansion
for /F "tokens=1,2 delims=#" %%a in ('"prompt #$H#$E# & echo on & for %%b in (1) do rem"') do (
set "DEL=%%a"
)
:begining
call :ColorText aa "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" & echo.
call :ColorText aa "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" & echo.
call :ColorText bb "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" & echo.
call :ColorText bb "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" & echo.
call :ColorText cc "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" & echo.
call :ColorText cc "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" & echo.
call :ColorText dd "aaaaaaaaaaaaaaaaaaaaaaaaaa" & echo.
call :ColorText dd "aaaaaaaaaaaaaaaaaaaaaaaaaa" & echo.
call :ColorText ff "aaaaaaaaaaaaaaaaaaaaa" & echo.
call :ColorText ff "aaaaaaaaaaaaaaaaaaaaa" & echo.
call :ColorText ff "aaaaaaaaaaaaaaaaaaaaa" & echo.
call :ColorText dd "aaaaaaaaaaaaaaaaaaaaaaaaaa" & echo.
call :ColorText dd "aaaaaaaaaaaaaaaaaaaaaaaaaa" & echo.
call :ColorText cc "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" & echo.
call :ColorText cc "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" & echo.
call :ColorText bb "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" & echo.
call :ColorText bb "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" & echo.
call :ColorText aa "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" & echo.
call :ColorText aa "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" & echo.
goto begining

goto :ednd

:ColorText
echo off
<nul set /p ".=%DEL%" > "%~2"
findstr /v /a:%1 /R "^$" "%~2" nul
del "%~2" > nul 2>&1

goto :eof
I should site that i borrowed part of this from
another user on this site(i cannot find the post, appologies to origional author)

mike


Report •
Related Solutions


Ask Question