Fun Rainbow Clock for Batch Files

This is a simple code to display the time in multiple colours.

Code:

@echo off
title Multi coloured time

:1

color 0a

echo Time: %time%

goto 2

:2

color 0b

echo Time: %time%

goto 3

:3

color 0c

echo Time: %time%

goto 4

:4

color 0d

echo Time: %time%

goto 1

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Single Line Display

@echo off

Title Clock

Colour 8e

:a

Time...%time%

Cls

Goto a

This will show the time on one line instead of multiple.

Time Contest

Participated in the
Time Contest

Share

    Recommendations

    • Indoor Lighting Contest

      Indoor Lighting Contest
    • Make It Fly Challenge

      Make It Fly Challenge
    • Growing Beyond Earth Maker Contest

      Growing Beyond Earth Maker Contest

    2 Discussions

    0
    None
    the discoverer

    3 years ago

    Cool program I tried it out, Cool rainbow effect ! Is time an inbuilt variable like random ? Would it be possible to have only one statement (BOLD) in the middle of the page? I mean that, the statement might be recurring but would it be able to recur ONLY in the middle of the page?

    1 reply
    0
    None

    Yes, it uses your system time. I haven't found away yet but if I do I will add it here as an update.