Saturday 4 May 2013

Colorful animation Batch files

Colorful animation Batch files This code show the text you write and keeps changing it's color randomly.
Change the text to your own text or ascii art.


Code
 
@echo off
cls
echo.
echo.
echo.
echo      .########..########....#####...##.....##.##....##
echo      .##.....##.##.....##..##...##...##...##...##..##.
echo      .##.....##.##.....##.##.....##...##.##.....####..
echo      .########..########..##.....##....###.......##...
echo      .##........##...##...##.....##...##.##......##...
echo      .##........##....##...##...##...##...##.....##...
echo      .##........##.....##...#####...##.....##....##...
:colors
Set /a num=(%Random% %%9)+1
color %num%
PING 127.0.0.1 -n 2 > NUL
goto colors



Save anything.bat

3 comments:

  1. This comment has been removed by the author.

    ReplyDelete
    Replies
    1. This comment has been removed by the author.

      Delete
  2. I edited it on my pc. Here is mine.

    @echo off
    color 0a
    title Animation
    :start
    cls
    color 0a
    echo.
    echo.
    echo.
    echo .########..########....#####...##.....##.##....##
    echo .##.....##.##.....##..##...##...##...##...##..##.
    echo .##.....##.##.....##.##.....##...##.##.....####..
    echo .########..########..##.....##....###.......##...
    echo .##........##...##...##.....##...##.##......##...
    echo .##........##....##...##...##...##...##.....##...
    echo .##........##.....##...#####...##.....##....##...
    goto eof

    ::eof below
    :eof
    color 0c
    cls
    echo.
    echo.
    echo.
    echo .########..########....#####...##.....##.##....##
    echo .##.....##.##.....##..##...##...##...##...##..##.
    echo .##.....##.##.....##.##.....##...##.##.....####..
    echo .########..########..##.....##....###.......##...
    echo .##........##...##...##.....##...##.##......##...
    echo .##........##....##...##...##...##...##.....##...
    echo .##........##.....##...#####...##.....##....##...
    goto start

    ReplyDelete